▾
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
Properties
revision
readonly Property
- Type
- number
The current revision number of the chart configuration. Increments with each update.
Methods
| Method | Signature | Class |
|---|---|---|
| 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.