v3.0.0 (@mongodb-js/charts-embed-dom)
Breaking Changes
- Minimum
refresh tolerancewhenautoRefreshis enabled for embedded chart and dashboard is increased from 10 seconds to 60 seconds. Please see API doc for more information underRefresh Tolerancesection. setFiltermethod for embedded chart and dashboard now will only accept aJavaScript plain objectwith valid query operators. If an array is supplied, an exception will be raised.- The return format of
getFilterandgetHighlightmethods for embedded chart is updated from EJSON to deserialised EJSON. E.g.{ beds: {$gt: {$numberInt: '2'}}}will now become{ beds: {$gt: 2}}.
New
Dashboard Embedding
-
Dashboard
- You can now set filter on a dashboard level for embedded dashboard through:
setFiltermethod for embedded dashboard.filteroption during embedded dashboard initialisation- Have a play on an example app here
- Added
getFiltermethod to retrieve the current filter set to the embedded dashboard
- You can now set filter on a dashboard level for embedded dashboard through:
Chart Embedding
getImagemethod to get png of the embedded chart inbase64orbinaryencoding.Table Chartis not supported for this method.