API REFERENCE

destroyChart

Closes the specified chart and releases its resources.

What does this API do?

Closes the specified chart and releases its resources.

API for Pro features: Integrated range charts and pivot chart tools

Exact input and result types

typescript
destroyChart(chartId: string): Promise<SyGridChartDestroyResult>
ArgumentsRequiredType
chartIdRequiredstring

The return type is Promise<SyGridChartDestroyResult>.

Usage flow

After registering and initializing the Grid element, call grid.destroyChart(…). Read the return value with await. For methods returning a boolean or report, inspect the result before continuing.

Read related types

Feature explanations and examples