ESM
import { ChartModelWrapper } from "@arcgis/charts-components/model/chart-model/chart-model-wrapper.js";
Inheritance
ChartModelWrapper→EventTarget

A lightweight wrapper for a WebChart config that has a similar shape to a ChartModel. Just used internally for the case where the chart component receives a raw WebChart config instead of a full ChartModel instance.

@private

Constructors

Constructor

Constructor

Parameters

ParameterTypeDescriptionRequired
config

Properties

asyncUpdatesPromise

Property
Type
Promise<void>

config

Property
Type
WebChart | undefined

The current chart configuration object.

layer

readonly Property
Type
undefined

revision

readonly Property
Type
number

The current revision number of the chart configuration. Increments with each update.

Methods

MethodSignatureClass
recall(configRevision?: number): WebChart | undefined

recall

Method
Signature
recall (configRevision?: number): WebChart | undefined

Recalls a previous chart configuration based on its revision number. Returns undefined if the requested revision is not available (beyond the stored history limit).

If no configRevision number is provided, it recalls the last configuration just before the current one.

Parameters

ParameterTypeDescriptionRequired
configRevision
Returns
WebChart | undefined