Skip to content

v3.0.0-beta.0 (@mongodb-js/charts-embed-dom)

Pre-release
Pre-release
Compare
Choose a tag to compare
@mongo-J mongo-J released this 26 Feb 22:47
· 8 commits to master since this release
cd16e18

npm (scoped)

Breaking Changes

  • Minimum refresh tolerance when autoRefresh is enabled for embedded chart and dashboard is increased from 10 seconds to 60 seconds. Please see API doc for more information under Refresh Tolerance section.
  • setFilter method for embedded chart and dashboard now will only accept a JavaScript plain object with valid query operators. If an array is supplied, an exception will be raised.
  • The return format of getFilter and getHighlight methods 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:
      • setFilter method for embedded dashboard.
      • filter option during embedded dashboard initialisation
    • Added getFilter method to retrieve the current filter set to the embedded dashboard
  • Dashboard Chart

    • N/A

Chart Embedding

  • getImage method to get png of the embedded chart in base64 or binary encoding. Table Chart is not supported for this method.