API REFERENCE

restoreChartModels

Restores a saved chart envelope against the current Grid data contract and returns results.

What does this API do?

Restores a saved chart envelope against the current Grid data contract and returns results.

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

Exact input and result types

typescript
restoreChartModels(envelope: unknown): Promise<SyGridChartRestoreResult>
ArgumentsRequiredType
envelopeRequiredunknown

The return type is Promise<SyGridChartRestoreResult>.

Usage flow

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