Skip to content

Releases: mongodb-js/charts-embed-sdk

v3.3.1 (@mongodb-js/charts-embed-dom)

12 Jul 06:50
66a1997
Compare
Choose a tag to compare

npm (scoped)

New

  • Set preFilter for embedded dashboard, embedded chart or embedded dashboard chart with setPreFilter method.
  • Set preFilter for embedded dashboard or embedded chart through EmbedDashboardOptions or EmbedChartOptions.
  • Get preFilter for embedded dashboard, embedded chart or embedded dashboard chart with getPreFilter method.

Fixed

  • A critical bug fix for v3.3.0 (deprecated)

v3.2.1 (@mongodb-js/charts-embed-dom)

01 Nov 06:27
2f94047
Compare
Choose a tag to compare

npm (scoped)

Fixed

  • Fixed a bug for embedded chart render() function in which a timeout error is thrown when a chart takes longer than 30 seconds to load.

v3.2.0 (@mongodb-js/charts-embed-dom)

22 Aug 06:59
3e21565
Compare
Choose a tag to compare

npm (scoped)

New

  • Set customizations for an embedded chart with setRenderingSpecOverride method.
  • Set customizations for an embedded chart for the initial render with renderingSpec property in EmbedChartOptions.
  • Get customizations set on an embedded chart with getRenderingSpecOverride method.
  • Get chart channels for an embedded chart with getChannels method.
  • Get customizable chart axes for an embedded chart with getCustomizableAxes method.

See rendering specification for more documentation

v3.1.0 (@mongodb-js/charts-embed-dom)

12 Apr 08:35
7a97556
Compare
Choose a tag to compare

npm (scoped)

Dashboard embedding new methods and embedding options 🥳

  • Get an image of an embedded dashboard by using the new getImage() method to get PNG in base64 or binary encoding
  • Get the chart data from an embedded dashboard chart by using the new method getData() for dashboard charts
  • Added a new charts field in the dashboard embedding options for createDashboard() that allows you to configure the charts individually in an embedded dashboard. For now, you can specify a different filter for every chart in the embedded dashboard.

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

27 Feb 04:05
cd16e18
Compare
Choose a tag to compare

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
      • Have a play on an example app here
    • Added getFilter method to retrieve the current filter set to the embedded dashboard

Chart Embedding

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

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

26 Feb 22:47
cd16e18
Compare
Choose a tag to compare

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.

v2.3.1 (@mongodb-js/charts-embed-dom)

10 Jan 23:36
cd16e18
Compare
Choose a tag to compare

npm (scoped)

Changed the version of jsonwebtoken to v9.0.0

v2.3.0 (@mongodb-js/charts-embed-dom)

28 Sep 04:54
07d6a54
Compare
Choose a tag to compare

npm (scoped)

Dashboard embedding new methods

  • Set/Get a filter for a chart in an embedded dashboard.
    • setFilter and getFilter for embedded dashboard charts.
  • Set/Get a highlight for a chart in an embedded dashboard.
    • setHighlight and getHighlight for embedded dashboard charts

Authenticated Embedding

  • Add support for authenticated chart and dashboard embedding with realm-web SDK.

v2.3.0-beta.2 (@mongodb-js/charts-embed-dom)

21 Sep 06:41
07d6a54
Compare
Choose a tag to compare

npm (scoped)

Dashboard embedding new methods

  • Set or get a highlight for a chart in an embedded dashboard with the new methods we added - setHighlight and getHighlight for embedded dashboard charts

Authenticated embedding

  • Added support for authenticated embedding with realm-web SDK

v2.3.0-beta.1 (@mongodb-js/charts-embed-dom)

16 May 23:13
fa47084
Compare
Choose a tag to compare

npm (scoped)

🔬 Dashboard embedding new methods (beta)

  • Set or get a filter for a chart in an embedded dashboard with the new methods we added - setFilter and getFilter for embedded dashboard charts.