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

typescript
chartDestroyed: SyGridChartEvent

Usage 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.

javascript
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