API REFERENCE

exportChartImage

Requests image export for an integrated chart and returns the result.

What does this API do?

Requests image export for an integrated chart and returns the result.

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

Exact input and result types

typescript
exportChartImage(chartId: string, request: SyGridChartExportRequest): Promise<SyGridChartExportResult>
ArgumentsRequiredType
chartIdRequiredstring
requestRequiredSyGridChartExportRequest

The return type is Promise<SyGridChartExportResult>.

Usage flow

After registering and initializing the Grid element, call grid.exportChartImage(…). 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