Send message to embedded app.
all charts on the dashboard
get the dashboard chart with specified id
current chartsBackground or empty string if not set
get height scaling mode of embedded dashboard
the number of seconds before a chart or dashboard's data expires
the current theme applied to the chart or dashboard
get width scaling mode of embedded dashboard
whether auto refreshing is enabled
whether attribution logo should be shown
Triggers a refresh of the chart or dashboard (if it has been embedded).
a promise that resolves once the chart or dashboard updated its data
Renders an embeddable item into the given container
.
This method should only be called once, and successive attempts to call render
will fail with an error.
a promise that will resolve once the item has successfully been embedded
Enable/Disable auto refreshing.
Set a custom background color for all charts. To clear existing value, set it to empty string.
Set height scaling mode for embedded dashboard
Set the number of seconds a chart or dashboard's data expires.
Enable/Disable attribution logo.
Sets the color scheme to apply to the chart or dashboard.
If the theme is set to 'dark' and you have specified a custom background color, you should ensure that your background color has appropriate contrast.
Set width scaling mode for embedded dashboard
Send message to embedded app.
Generated using TypeDoc
Dashboard
Allows you to interact and embed dashboards into your application.
const sdk = new EmbedSDK({ ... }); const dashboard = sdk.createDashboard({ ... }); // renders a dashboard dashboard.render(document.getElementById('embed-dashboard'));