ESM
import { ChartModelBase } from "@arcgis/charts-components/model/chart-model/chart-model-base.js";- Inheritance:
- ChartModelBase→
EventTarget
- Subclasses:
- config, layer, chart-id, title-text, title-symbol, version, subtitle-text, subtitle-symbol, description-text, description-symbol, title-visibility, subtitle-visibility, description-visibility, chart-renderer, background-color, series-visibility, series-id, series-index, series-length, chart-sub-type, data-tooltip-value-format, fetch-null-values, split-by-values, data-filters, chart-model, color-match, rotated-state, data-labels-visibility, data-labels-symbol, x-axis-title-text, x-axis-labels-visibility, x-axis-title-visibility, x-bounds, x-axis-title-symbol, axis-labels-symbol, axis-lines-symbol, generate-x-axis-title, negative-values-stacked-to-baseline, max-x-bound, min-x-bound
Constructors
Constructor
Constructor
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| args | any[] | | |
Properties
| Property | Type | Class |
|---|---|---|
| | ||
chartType readonly | | |
| |
dataStore
Property
- Type
- any
Data store object that can be used to store any data needed for the chart.
Methods
| Method | Signature | Class |
|---|---|---|
generateChartTitle(): string | | |
isSameChartAs(otherModel: ChartModel | undefined): boolean | | |
setup(params: ModelParams<ChartConfig>): Promise<void> | | |
update(): Promise<void> | |
generateChartTitle
Method
- Signature
-
generateChartTitle (): string
Generate the proper chart title from the current config.
- Returns
- string
isSameChartAs
Method
- Signature
-
isSameChartAs (otherModel: ChartModel | undefined): boolean
Checks if the current chart model is for the same chart as another chart model.
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| otherModel | The other chart model to compare to. | |
- Returns
- boolean