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
Returns the current filter applied to the embedded chart The filter value is taken from the state of the chart entity in the Charts app component.
a promise that resolves once the filter is taken from the Charts state
get height scaling mode of embedded dashboard
Get the image data of embeded entity in base64 or binary encoding
options for image generation
image encoded with base64 or binary
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
Sends the ready
event to Charts together with the chart options
to render the embedded dashboard in the container
where the dashboard will render
Enable/Disable auto refreshing.
Set a custom background color for all charts. To clear existing value, set it to empty string.
Sets a filter to the state of the chart/dashboard entity in the Charts app component. The chart entity can be an embedded chart, embedded dashboard chart or embedded dashboard. The filter gets applied to the embedded chart/dashboard.
This expects an object that contains a valid query operators. Any fields referenced in this filter are expected to be allowed for filtering in the "Embed Chart" dialog or "Embed Dashboard" dialog for each chart/dashboard you wish to filter on.
The filter object to be applied to the chart/dashboard
a promise that resolves once the filter is saved and the component rerendered
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'));