API REFERENCE
chartDestroyed
Emitted when an integrated chart is destroyed. Clean up app-held references and external resources.
What does this API do?
Emitted when an integrated chart is destroyed. Clean up app-held references and external resources.
API for Pro features: Integrated range charts and pivot chart tools
Exact input and result types
chartDestroyed: SyGridChartEventUsage flow
Subscribe with grid.addEventListener('chartDestroyed', handler). The result is in event.detail, and event names are case-sensitive. Remove subscriptions when disposing of the view.
const controller = new AbortController();
grid.addEventListener('chartDestroyed', event => {
console.log(event.detail);
}, { signal: controller.signal });
// On view disposal: controller.abort();Read related types
Feature explanations and examples
- Chart selected data
Connect a Grid range to a chart to view the same data as both a table and a graph. Select category and value columns appropriate to the chart type, rather than simply selecting numeric values.