▾
import { ComboBarLineChartModel } from "@arcgis/charts-components/model/combo-bar-line-chart-model/combo-bar-line-chart-model.js";- Inheritance
- ComboBarLineChartModel→
serial-chart-model→ chart-model→ chart-model-base→ EventTarget
Constructors
Constructor
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| args | any[] | | |
Properties
| Property | Type | Class |
|---|---|---|
| inherited | ||
| inherited | ||
| inherited | ||
| inherited | ||
| inherited | ||
| inherited | ||
| inherited | ||
| inherited | IDrawingInfo["renderer"] | undefined | |
| inherited | ||
| readonly inherited | ||
| inherited | ||
| readonly inherited | ||
| inherited | ||
| inherited | ||
| inherited | ||
| inherited | ||
| inherited | ||
| inherited | ||
| inherited | ||
| inherited | ||
| inherited | ||
| inherited | ||
| inherited | ||
| inherited | ||
| inherited | ||
| inherited | ||
| inherited | ||
| readonly inherited | ||
| inherited | ||
| inherited | ||
| inherited | ||
| inherited | ||
| inherited | ||
| inherited | ||
| inherited | ||
| inherited | ||
| inherited | ||
| inherited | ||
| inherited | ||
| inherited | ||
| inherited | string[] | |
| inherited | string[] | |
| readonly inherited | ||
| inherited | ||
| deprecated inherited | ||
| inherited | ||
| readonly inherited | ||
| inherited | ||
| readonly inherited | string[] | |
| inherited | ||
| inherited | ||
| inherited | ||
| inherited | ||
| inherited | ||
| inherited | ||
| inherited | ||
| inherited | ||
| inherited | ||
| inherited | ||
| readonly inherited | ||
| inherited | ||
| inherited | ||
| inherited | ||
| inherited | ||
| inherited |
aggregationType
The aggregation type for the chart.
asyncUpdatesPromise
Promise that resolves when the setup process is complete.
Note: This promise does not need to be awaited if the setup method has already been awaited. It is simply provided as a way to await the setup process from other functions if needed to avoid race conditions.
axisLabelsSymbol
- Type
- WebChartTextSymbol | undefined
Axis labels text symbol (font, color, style).
axisLinesSymbol
- Type
- ISimpleLineSymbol | undefined
Axis lines symbol (line width, style, color).
backgroundColor
The background color of the chart.
binTemporalData
- Type
- boolean
Whether temporal binning is enabled for all series in the config.
Note: Setting this prop removes any existing temporal binning settings if value is set to false.
chartRenderer
- Type
- IDrawingInfo["renderer"] | undefined
The chart renderer.
- Example
In this example, we set the chartRenderer for a class-break heat chart.
heatChartModel.chartRenderer = {"type": "classBreaks","field": "arcgis_charts_heat_chart_value","classBreakInfos": [{"label": "70 - 145","classMinValue": 70,"classMaxValue": 145,"symbol": {"type": "esriSFS","color": [212,227,255,255],"style": "esriSFSSolid"}},{"label": "146 - 250","classMinValue": 146,"classMaxValue": 250,"symbol": {"type": "esriSFS","color": [43,108,240,255],"style": "esriSFSSolid"}}]};
chartSubtitleVisibility
- Type
- boolean
Whether or not the chart subtitle is visible.
Note: Even if the subtitle is visible, it may not be displayed if the subtitle text is empty.
chartSubType
- Type
- ChartSubType
The chart sub type of the series.
chartTitleVisibility
- Type
- boolean
Whether or not the chart title is visible.
Note: Even if the title is visible, it may not be displayed if the title text is empty.
colorMatch
- Type
- boolean
Whether the chart should attempt to match the data source's colors.
true: Attempt to match the data source's colors.
false: Use the colors defined in the config.
config
- Type
- ChartConfig
The current chart configuration object.
cornerRadius
Gets the rounded corner radius for the chart.
Known limitation: Rounded corners are not rendered when chart interactions are disabled (interactionsDisabled or disableInteractions is true).
cursorCrosshair
- Type
- WebChartCursorCrosshair | undefined
Gets the cursor crosshair.
cursorCrosshairHorizontalLineVisibility
- Type
- boolean
Gets the visibility of the horizontal line of the cursor's crosshair.
- If the cursor crosshair or its horizontal line visibility is not set, the default value of
falsewill be returned.
cursorCrosshairStyle
- Type
- ISimpleLineSymbol | undefined
Gets the style of the cursor's crosshair.
cursorCrosshairVerticalLineVisibility
- Type
- boolean
Gets the visibility of the vertical line of the cursor's crosshair.
- If the cursor crosshair or its vertical line visibility is not set, the default value of
falsewill be returned.
dataLabelsSymbol
- Type
- WebChartTextSymbol | undefined
Data labels text symbol (font, color, style).
dataLabelsVisibility
- Type
- boolean
Whether data labels are visible.
dataStore
- Type
- any
Data store object that can be used to store any data needed for the chart.
descriptionSymbol
- Type
- WebChartTextSymbol | undefined
The description text symbol. Contains styling information such as font, color, and symbol style.
descriptionVisibility
- Type
- boolean
Whether or not the chart description is visible.
Note: Even if the description is visible, it may not be displayed if the description text is empty.
fetchNULLValues
- Type
- boolean
Whether to fetch null values for them to be counted or displayed as categories on the chart.
guideLabelsSymbol
- Type
- WebChartTextSymbol | undefined
The guide labels text symbol (font, color, style).
layer
- Type
- SupportedLayer | SupportedRasterLayer | undefined
The chart model's layer.
legendPosition
Legend position: top, bottom, left, or right.
legendRoundMarker
- Type
- boolean
Whether legend markers are rounded.
legendTextSymbol
- Type
- WebChartTextSymbol | undefined
Legend item text symbol (font, color, style).
legendTitleSymbol
- Type
- WebChartTextSymbol | undefined
Legend title text symbol (font, color, style).
legendTitleText
- Type
- string
The legend title text.
legendTitleVisibility
- Type
- boolean
Whether the legend title is visible.
legendVisibility
- Type
- boolean
Whether the legend title is visible.
maxXBound
Maximum bound set for the x-axis.
null indicates no explicit maximum.
minXBound
Minimum bound set for the x-axis.
null indicates no explicit minimum.
nullCategory
- Type
- WebChartNullCategory | undefined
The null category configuration of the chart.
The following to be set on the model for the null category to be applied:
fetchNULLValuesto be set totrueon the model.colorMatchto be set tofalseon the model
nullPolicy
- Type
- WebChartNullPolicyTypes | undefined
Policy which tells the chart how to handle null values.
null: Break the bar where null values are present.
zero: Treats null values as zero.
interpolate:
- Bar series: same effect as
null - Line series: connects the lines across null values.
numericFields
- Type
- string[]
The numeric fields array for the chart.
orderByList
- Type
- string[]
The list of values for custom sort.
revision
- Type
- number
The current revision number of the chart configuration. Increments with each update.
rotated
- Type
- boolean
Whether the chart is rotated.
rotatedState
- Type
- boolean
Whether the chart is rotated.
roundCorners
- Type
- boolean
Gets whether rounded corners are enabled for the chart.
Known limitation: Rounded corners are not rendered when chart interactions are disabled (interactionsDisabled or disableInteractions is true).
seriesLength
- Type
- number
The length of the series array.
splitByField
- Type
- string
The split-by field for the chart.
splitByValues
- Type
- string[]
The split-by values for the chart.
stackedType
- Type
- WebChartStackedKinds | undefined
How the bars (lines) should be placed when multiple series are rendered in the same chart, say when "split by" operation is executed on any field or when multiple attributes/fields corresponding to the same set of classes are to be visualized.
Note: Currently this property is only used for bar charts and line charts.
subtitleSymbol
- Type
- WebChartTextSymbol | undefined
The subtitle text symbol. Contains styling information such as font, color, and symbol style.
subtitleText
- Type
- string
The chart subtitle text.
temporalBinningSize
Time interval size for a temporal bar chart or line chart.
temporalBinningUnit
Time interval units for a temporal bar chart or line chart.
timeAggregationType
Time aggregation type for a temporal bar chart or line chart.
titleSymbol
- Type
- WebChartTextSymbol | undefined
The title text symbol. Contains styling information such as font, color, and symbol style.
trimIncompleteTimeInterval
Whether to trim incomplete time intervals for a temporal bar chart or line chart.
version
The version of the chart configuration.
xAxisField
- Type
- string
The x-axis field for the chart.
xAxisLabelsVisibility
- Type
- boolean
Whether the x-axis labels are visible.
xAxisTitleSymbol
- Type
- WebChartTextSymbol | undefined
X-axis title text symbol (font, color, style).
xAxisTitleText
- Type
- string
The x-axis title text.
xAxisTitleVisibility
- Type
- boolean
Whether the x-axis title is visible.
true: X-axis title is visible.
false: X-axis title is hidden.
Methods
| Method | Signature | Class |
|---|---|---|
| inherited | addXAxisGuide(name: string, index?: number): void | |
| inherited | addYAxisGuide(name: string, index?: number): void | |
| inherited | deleteXAxisGuide(index?: number): void | |
| inherited | deleteYAxisGuide(index?: number): void | |
| inherited | generateChartTitle(): string | |
| inherited | generateXAxisTitle(): string | |
| inherited | generateYAxisTitle(): string | |
| getAreaColor(seriesIndex: number): Color | undefined | | |
| deprecated inherited | getAssignToSecondValueAxis(seriesIndex: number): boolean | |
| inherited | getAxisLabelsVisibility(axisIndex: number): boolean | |
| inherited | getAxisScrollbar(axisIndex: number): WebChartAxisScrollBar | undefined | |
| inherited | getAxisTitleSymbol(axisIndex: number): WebChartTextSymbol | undefined | |
| inherited | getAxisTitleText(axisIndex: number): string | |
| inherited | getAxisTitleVisibility(axisIndex: number): boolean | |
| inherited | getAxisValueFormat(axisIndex: number): CategoryFormatOptions | DateTimeFormatOptions | NumberFormatOptions | undefined | |
| inherited | getAxisVisibility(axisIndex: number): boolean | |
| inherited | getBuffer(axisIndex: number): boolean | |
| inherited | getCustomSortValues(num?: number): Promise<string[]> | |
| inherited | getDataFilters(): WebChartDataFilters | undefined | |
| inherited | getDataLabelsSymbol(seriesIndex: number): WebChartTextSymbol | undefined | |
| inherited | getDataSortOrder(): HeatChartDataSortingKinds | SerialChartDataSortingKinds | |
| inherited | getDataTooltipFontSize(seriesIndex: number): number | undefined | |
| inherited | getDataTooltipReverseColor(seriesIndex?: number): boolean | |
| inherited | getDataTooltipValueFormat(seriesIndex: number): NumberFormatOptions | undefined | |
| inherited | getDataTooltipVisibility(seriesIndex?: number): boolean | |
| inherited | getDefaultXAxisTitleText(): string | |
| inherited | getDisplayCursorTooltip(axisIndex: number): boolean | |
| inherited | getDisplayZeroLine(axisIndex: number): boolean | |
| inherited | getGridLinesSymbol(): ISimpleLineSymbol | undefined | |
| inherited | getGuideAbove(index?: number, orientation?: GuideOrientation): boolean | |
| inherited | getGuideEnd(index?: number, orientation?: GuideOrientation): Date | number | string | null | undefined | |
| inherited | getGuideLabelText(index?: number, orientation?: GuideOrientation): string | undefined | |
| inherited | getGuideName(index?: number, orientation?: GuideOrientation): string | undefined | |
| inherited | getGuideStart(index?: number, orientation?: GuideOrientation): Date | number | string | null | |
| inherited | getGuideStyle(index?: number, orientation?: GuideOrientation): ISimpleFillSymbol | ISimpleLineSymbol | undefined | |
| inherited | getGuideTooltipReverseColor(index: number, orientation?: GuideOrientation): boolean | |
| inherited | getGuideVisibility(index?: number, orientation?: GuideOrientation): boolean | |
| inherited | getHorizontalAxisLabelsBehavior(): WebChartLabelBehavior | |
| inherited | getIntegerOnlyValues(axisIndex: number): boolean | |
| inherited | getLogarithmic(axisIndex: number): boolean | |
| inherited | getMaxBound(axisIndex: number): number | |
| inherited | getMinBound(axisIndex: number): number | |
| inherited | getOrderOfSeries(): string[] | |
| inherited | getSeriesColor(seriesIndex: number): Color | undefined | |
| getSeriesHideOversizedSideBySideLabels(seriesIndex: number): boolean | undefined | | |
| getSeriesHideOversizedStackedLabels(seriesIndex: number): boolean | undefined | | |
| inherited | getSeriesId(seriesIndex: number): string | undefined | |
| inherited | getSeriesIndex(seriesId: string): number | undefined | |
| getSeriesLineStyle(seriesIndex: number): RESTSimpleLineSymbolStyle | undefined | | |
| getSeriesLineWidth(seriesIndex: number): number | undefined | | |
| getSeriesMarkerColor(seriesIndex: number): Color | undefined | | |
| getSeriesMarkerSize(seriesIndex: number): number | undefined | | |
| getSeriesMarkerStyle(seriesIndex: number): RESTSimpleMarkerSymbolStyle | undefined | | |
| inherited | getSeriesName(seriesIndex: number): string | undefined | |
| inherited | getSeriesToSecondaryYAxis(seriesIndex: number): boolean | |
| inherited | getSeriesVisibility(seriesIndex: number): boolean | |
| deprecated inherited | getSortOrder(): HeatChartDataSortingKinds | SerialChartDataSortingKinds | |
| inherited | getTickSpacing(axisIndex: number): number | undefined | |
| deprecated inherited | getTooltipReverseColor(index: number, orientation?: GuideOrientation): boolean | |
| inherited | getVerticalAxisLabelsBehavior(): WebChartLabelBehavior | |
| inherited | getXGuidesLength(): number | undefined | |
| inherited | getYGuidesLength(): number | undefined | |
| isAreaVisible(seriesIndex: number): boolean | | |
| isLineSmoothed(seriesIndex: number): boolean | | |
| isMarkerVisible(seriesIndex: number): boolean | | |
| inherited | isNegativeValuesStackedToBaseline(seriesIndex: number): boolean | |
| inherited | isSameChartAs(otherModel: ChartModel | undefined): boolean | |
| inherited | moveCustomSortValuesInOrderByList(fromIndex: number, toIndex: number): void | |
| inherited | moveSeries(fromIndex: number, toIndex: number): void | |
| inherited | rebuildSeries(): Promise<void> | |
| inherited | recall(configRevision?: number): ChartConfig | undefined | |
| inherited | resetTimeInterval(): void | |
| setAreaColor(color: Color | undefined, seriesIndex: number): void | | |
| setAreaVisible(visible: boolean, seriesIndex?: number): void | | |
| deprecated inherited | setAssignToSecondValueAxis(assign: boolean, seriesIndex: number): void | |
| inherited | setAxisLabelsVisibility(isVisible: boolean, axisIndex?: number): void | |
| inherited | setAxisScrollbar(scrollbar: WebChartAxisScrollBar, axisIndex: number): void | |
| inherited | setAxisTitleSymbol(titleSymbol: WebChartTextSymbol | undefined, axisIndex?: number): void | |
| inherited | setAxisTitleText(titleText: string, axisIndex: number): void | |
| inherited | setAxisTitleVisibility(isVisible: boolean, axisIndex?: number): void | |
| inherited | setAxisValueFormat(axisIndex: number, valueFormat?: CategoryFormatOptions | DateTimeFormatOptions | NumberFormatOptions): void | |
| inherited | setAxisVisibility(isVisible: boolean, axisIndex: number): void | |
| inherited | setBuffer(buffer: boolean, axisIndex?: number): void | |
| inherited | setDataFilters(newDataFilter: WebChartDataFilters | undefined): Promise<void> | |
| inherited | setDataLabelsSymbol(newDataLabelsSymbol: WebChartTextSymbol | undefined, seriesIndex: number): void | |
| inherited | setDataSortOrder(newSortOrder: HeatChartDataSortingKinds | SerialChartDataSortingKinds, orderByList?: string[]): void | |
| inherited | setDataTooltipFontSize(fontSize: number | undefined, seriesIndex: number): void | |
| inherited | setDataTooltipReverseColor(reverseColor: boolean, seriesIndex?: number): void | |
| inherited | setDataTooltipValueFormat(seriesIndex: number, valueFormat: NumberFormatOptions | undefined): void | |
| inherited | setDataTooltipVisibility(visibility: boolean, seriesIndex?: number): void | |
| inherited | setDisplayCursorTooltip(displayCursorTooltip: boolean, axisIndex?: number): void | |
| inherited | setDisplayZeroLine(displayZeroLine: boolean, axisIndex?: number): void | |
| inherited | setGridLinesSymbol(linesSymbol: ISimpleLineSymbol | undefined, axisIndices?: number[]): void | |
| inherited | setGuideAbove(above: boolean, index?: number, orientation?: GuideOrientation): void | |
| inherited | setGuideEnd(end: Date | number | string | null | undefined, index?: number, orientation?: GuideOrientation): void | |
| inherited | setGuideLabelText(labelText: string, index?: number, orientation?: GuideOrientation): void | |
| inherited | setGuideName(name: string, index?: number, orientation?: GuideOrientation): void | |
| inherited | setGuideStart(start: Date | number | string | null, index?: number, orientation?: GuideOrientation): void | |
| inherited | setGuideStyle(style: ISimpleFillSymbol | ISimpleLineSymbol, index?: number, orientation?: GuideOrientation): void | |
| inherited | setGuideTooltipReverseColor(reverseColor: boolean, index?: number, orientation?: GuideOrientation): void | |
| inherited | setGuideVisibility(visible: boolean, index?: number, orientation?: GuideOrientation): void | |
| inherited | setHorizontalAxisLabelsBehavior(horizontalBehavior: WebChartLabelBehavior): void | |
| inherited | setIntegerOnlyValues(integerOnlyValues: boolean, axisIndex?: number): void | |
| setLineSmoothed(smoothed: boolean, seriesIndex?: number): void | | |
| inherited | setLogarithmic(isLogarithmic: boolean, axisIndex: number): void | |
| setMarkersVisible(visible: boolean, seriesIndex?: number): void | | |
| deprecated | setMarkerVisible(visible: boolean, seriesIndex: number): void | |
| inherited | setMaxBound(newMaxBound: number | null, axisIndex: number): void | |
| inherited | setMinBound(newMinBound: number | null, axisIndex: number): void | |
| inherited | setNegativeValuesStackedToBaseline(stackNegativeValuesToBaseline: boolean, seriesIndex: number): void | |
| inherited | setOrderOfSeries(newOrder: string[]): void | |
| inherited | setSeriesColor(newColor: Color | undefined, seriesIndex: number): void | |
| setSeriesHideOversizedSideBySideLabels(hide: boolean | undefined, seriesIndex?: number): void | | |
| setSeriesHideOversizedStackedLabels(hide: boolean | undefined, seriesIndex?: number): void | | |
| setSeriesLineStyle(newStyle: RESTSimpleLineSymbolStyle | undefined, seriesIndex?: number): void | | |
| setSeriesLineWidth(newWidth: number | undefined, seriesIndex?: number): void | | |
| setSeriesMarkerColor(newColor: Color | undefined, seriesIndex: number): void | | |
| setSeriesMarkerSize(newSize: number | undefined, seriesIndex?: number): void | | |
| setSeriesMarkerStyle(newStyle: RESTSimpleMarkerSymbolStyle | undefined, seriesIndex?: number): void | | |
| inherited | setSeriesName(name: string, seriesIndex: number): void | |
| inherited | setSeriesToSecondaryYAxis(assign: boolean, seriesIndex: number): void | |
| setSeriesType(seriesIndex: number, seriesType: WebChartTypes): void | | |
| inherited | setSeriesVisibility(props: LegendItemVisibility): void | |
| deprecated inherited | setSortOrder(newSortOrder: HeatChartDataSortingKinds | SerialChartDataSortingKinds, orderByList?: string[]): void | |
| inherited | setTickSpacing(tickSpacing: number, axisIndex: number): void | |
| deprecated inherited | setTooltipReverseColor(reverseColor: boolean, index?: number, orientation?: GuideOrientation): void | |
| setup(params: ModelParams<ChartConfig<typeof ModelTypes.ComboBarLineChart>>): Promise<void> | | |
| inherited | setVerticalAxisLabelsBehavior(verticalBehavior: WebChartLabelBehavior): void | |
| inherited | update(): Promise<void> | |
| deprecated inherited | updateSeriesFromLayerFilter(): void |
addXAxisGuide
- Signature
-
addXAxisGuide (name: string, index?: number): void
Adds an X-axis guide.
addYAxisGuide
- Signature
-
addYAxisGuide (name: string, index?: number): void
Adds a Y-axis guide.
deleteXAxisGuide
- Signature
-
deleteXAxisGuide (index?: number): void
Deletes an X-axis guide.
deleteYAxisGuide
- Signature
-
deleteYAxisGuide (index?: number): void
Deletes a Y-axis guide.
generateChartTitle
- Signature
-
generateChartTitle (): string
Generate the proper chart title from the current config.
- Returns
- string
generateXAxisTitle
- Signature
-
generateXAxisTitle (): string
Generate the proper x-axis title from the current config.
- Returns
- string
generateYAxisTitle
- Signature
-
generateYAxisTitle (): string
Generate the proper y-axis title given the current config.
- Returns
- string
getAssignToSecondValueAxis
- Signature
-
getAssignToSecondValueAxis (seriesIndex: number): boolean
Gets whether the series should be assigned to the second value axis.
getAxisLabelsVisibility
- Signature
-
getAxisLabelsVisibility (axisIndex: number): boolean
Gets the visibility of the specified axis labels.
getAxisScrollbar
- Signature
-
getAxisScrollbar (axisIndex: number): WebChartAxisScrollBar | undefined
Gets the scrollbar configuration for the specified axis.
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| axisIndex | Axis index for the chart: | |
- Returns
- WebChartAxisScrollBar | undefined
getAxisTitleSymbol
- Signature
-
getAxisTitleSymbol (axisIndex: number): WebChartTextSymbol | undefined
Gets the specified title text symbol. Contains styling information such as font, color, and symbol style.
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| axisIndex | The index of the axis to get the title symbol for | |
- Returns
- WebChartTextSymbol | undefined
getAxisTitleText
- Signature
-
getAxisTitleText (axisIndex: number): string
Gets the title text of the specified axis.
getAxisTitleVisibility
- Signature
-
getAxisTitleVisibility (axisIndex: number): boolean
Gets the visibility of the specified axis title.
getAxisValueFormat
- Signature
-
getAxisValueFormat (axisIndex: number): CategoryFormatOptions | DateTimeFormatOptions | NumberFormatOptions | undefined
Gets the value format for the specified axis.
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| axisIndex | Axis index for the chart: | |
getAxisVisibility
- Signature
-
getAxisVisibility (axisIndex: number): boolean
Gets the visibility of the specified axis.
getBuffer
- Signature
-
getBuffer (axisIndex: number): boolean
Gets the buffer setting for the specified axis.
- This setting is only applicable to the axis of type
ValueAxis. - If the
bufferis not set on the axis, the default value offalsewill be returned.
getCustomSortValues
- Signature
-
getCustomSortValues (num?: number): Promise<string[]>
Gets the list of the category values for the chart.
getDataFilters
- Signature
-
getDataFilters (): WebChartDataFilters | undefined
Gets the data filter for the chart.
- Returns
- WebChartDataFilters | undefined
getDataLabelsSymbol
- Signature
-
getDataLabelsSymbol (seriesIndex: number): WebChartTextSymbol | undefined
Gets the data labels text symbol for a specific series in the chart config.
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| seriesIndex | | |
- Returns
- WebChartTextSymbol | undefined
getDataSortOrder
- Signature
-
getDataSortOrder (): HeatChartDataSortingKinds | SerialChartDataSortingKinds
- Since
- ArcGIS Maps SDK for JavaScript 5.2
Gets the data sort order for the chart.
Data sort orders the chart's categories or numeric values. It applies whether the chart has one series or many. This is distinct from getOrderOfSeries, which reorders the series themselves and only has an effect on multi-series charts.
Sort order kinds:
xAxisAsc/xAxisDesc— order by category axis values ascending or descendingyAxisAsc/yAxisDesc— order by numeric values ascending or descendingcustomSort— order by an explicit category list (orderByList)
- Returns
- HeatChartDataSortingKinds | SerialChartDataSortingKinds
The current data sort order kind.
getDataTooltipFontSize
- Signature
-
getDataTooltipFontSize (seriesIndex: number): number | undefined
Gets the data tooltip font size for a series.
If the series index is out of bounds or the series list is empty, this function will return undefined.
getDataTooltipReverseColor
- Signature
-
getDataTooltipReverseColor (seriesIndex?: number): boolean
Gets the setting of the dataTooltipReverseColor property.
- If the
dataTooltipReverseColoris not set on the series, the default value offalsewill be returned.
getDataTooltipValueFormat
- Signature
-
getDataTooltipValueFormat (seriesIndex: number): NumberFormatOptions | undefined
Gets the data tooltip value format for a series.
If the series index is out of bounds or the series list is empty, this function will return undefined.
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| seriesIndex | The index of the series to retrieve the value format for. | |
- Returns
- NumberFormatOptions | undefined
getDataTooltipVisibility
- Signature
-
getDataTooltipVisibility (seriesIndex?: number): boolean
Gets the visibility of the data tooltips.
- If the visibility is not set on the series, the default value of
truewill be returned.
getDefaultXAxisTitleText
- Signature
-
getDefaultXAxisTitleText (): string
Get the default x-axis title text.
- Returns
- string
getDisplayCursorTooltip
- Signature
-
getDisplayCursorTooltip (axisIndex: number): boolean
Gets the display cursor tooltip setting for the specified axis.
- If
displayCursorTooltipis not set on the axis, the default value offalsewill be returned.
getDisplayZeroLine
- Signature
-
getDisplayZeroLine (axisIndex: number): boolean
Gets the display zero line setting for the specified axis.
- This setting is only applicable to the axis of type
ValueAxis. - If the
displayZeroLineis not set on the axis, the default value offalsewill be returned.
getGridLinesSymbol
- Signature
-
getGridLinesSymbol (): ISimpleLineSymbol | undefined
Gets the grid lines symbol. Contains styling information such as line width, line style, and line color.
- Returns
- ISimpleLineSymbol | undefined
getGuideAbove
- Signature
-
getGuideAbove (index?: number, orientation?: GuideOrientation): boolean
Gets whether the guide should be rendered above the other chart elements.
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| index | Default | | |
| orientation | Default | |
- Returns
- boolean
getGuideEnd
- Signature
-
getGuideEnd (index?: number, orientation?: GuideOrientation): Date | number | string | null | undefined
Gets the end value of a guide.
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| index | Default | | |
| orientation | Default | |
getGuideLabelText
- Signature
-
getGuideLabelText (index?: number, orientation?: GuideOrientation): string | undefined
Gets the guide label text.
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| index | Default | | |
| orientation | Default | |
getGuideName
- Signature
-
getGuideName (index?: number, orientation?: GuideOrientation): string | undefined
Gets the name of a guide.
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| index | Default | | |
| orientation | Default | |
getGuideStart
- Signature
-
getGuideStart (index?: number, orientation?: GuideOrientation): Date | number | string | null
Gets the start value of a guide.
getGuideStyle
- Signature
-
getGuideStyle (index?: number, orientation?: GuideOrientation): ISimpleFillSymbol | ISimpleLineSymbol | undefined
Gets the guide style.
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| index | Default | | |
| orientation | Default | |
- Returns
- ISimpleFillSymbol | ISimpleLineSymbol | undefined
getGuideTooltipReverseColor
- Signature
-
getGuideTooltipReverseColor (index: number, orientation?: GuideOrientation): boolean
Gets whether the tooltip text color should be reversed for a guide.
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| index | The index of the guide in the list of guides for the given axis orientation. | | |
| orientation | The axis orientation of the guide. | |
- Returns
- boolean
getGuideVisibility
- Signature
-
getGuideVisibility (index?: number, orientation?: GuideOrientation): boolean
Gets whether a guide is visible.
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| index | Default | | |
| orientation | Default | |
- Returns
- boolean
getHorizontalAxisLabelsBehavior
- Signature
-
getHorizontalAxisLabelsBehavior (): WebChartLabelBehavior
Gets the horizontal axis labels behavior for the chart.
- Returns
- WebChartLabelBehavior
getIntegerOnlyValues
- Signature
-
getIntegerOnlyValues (axisIndex: number): boolean
Gets the integer only values setting for the specified axis.
- This setting is only applicable to the axis of type
ValueAxis. - If the
integerOnlyValuesis not set on the axis, the default value offalsewill be returned.
getLogarithmic
- Signature
-
getLogarithmic (axisIndex: number): boolean
Gets whether logarithmic scale is enabled for the specified axis.
getMaxBound
- Signature
-
getMaxBound (axisIndex: number): number
Gets the maximum bound for the specified axis.
getMinBound
- Signature
-
getMinBound (axisIndex: number): number
Gets the minimum bound for the specified axis.
getOrderOfSeries
- Signature
-
getOrderOfSeries (): string[]
Gets the order of the series array by returning an array of series ids.
Series order reorders the series themselves (legend and draw order). Use this only for a multi-series chart; on a single-series chart it has no effect.
This is distinct from getDataSortOrder, which orders categories or numeric values within the chart data.
- Returns
- string[]
getSeriesColor
- Signature
-
getSeriesColor (seriesIndex: number): Color | undefined
Gets the color of the series based on the series index. If the index is out of bounds, it will return undefined.
getSeriesId
- Signature
-
getSeriesId (seriesIndex: number): string | undefined
Gets the series ID for a given series index.
If the series index is out of bounds, this function will return undefined.
getSeriesIndex
- Signature
-
getSeriesIndex (seriesId: string): number | undefined
Gets the series index for a given series ID.
If the series ID is not found, this function will return undefined.
getSeriesLineStyle
- Signature
-
getSeriesLineStyle (seriesIndex: number): RESTSimpleLineSymbolStyle | undefined
Gets the line style of the series based on the series index.
If the index is out of bounds, it will return undefined.
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| seriesIndex | The index of the series. | |
- Returns
- RESTSimpleLineSymbolStyle | undefined
getSeriesMarkerStyle
- Signature
-
getSeriesMarkerStyle (seriesIndex: number): RESTSimpleMarkerSymbolStyle | undefined
Gets the marker style of the series based on the series index.
If the index is out of bounds, it will return undefined.
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| seriesIndex | The index of the series. | |
- Returns
- RESTSimpleMarkerSymbolStyle | undefined
getSeriesName
- Signature
-
getSeriesName (seriesIndex: number): string | undefined
Gets the name of the series based on the series index.
If the index is out of bounds, it will return undefined.
getSeriesToSecondaryYAxis
- Signature
-
getSeriesToSecondaryYAxis (seriesIndex: number): boolean
Gets whether the series should be assigned to the secondary y-axis.
getSeriesVisibility
- Signature
-
getSeriesVisibility (seriesIndex: number): boolean
Gets the visibility of a series.
getSortOrder
- Signature
-
getSortOrder (): HeatChartDataSortingKinds | SerialChartDataSortingKinds
Gets the data sort order for the chart.
getTickSpacing
- Signature
-
getTickSpacing (axisIndex: number): number | undefined
Gets the tick spacing setting for the specified axis.
getTooltipReverseColor
- Signature
-
getTooltipReverseColor (index: number, orientation?: GuideOrientation): boolean
Gets whether the tooltip text color should be reversed for a guide.
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| index | The index of the guide in the list of guides for the given axis orientation. | | |
| orientation | The axis orientation of the guide. | |
- Returns
- boolean
getVerticalAxisLabelsBehavior
- Signature
-
getVerticalAxisLabelsBehavior (): WebChartLabelBehavior
Gets the vertical axis labels behavior for the chart.
- Returns
- WebChartLabelBehavior
getXGuidesLength
- Signature
-
getXGuidesLength (): number | undefined
Gets the number guides in the X-axis guides list.
getYGuidesLength
- Signature
-
getYGuidesLength (): number | undefined
Gets the number guides in the Y-axis guides list.
isNegativeValuesStackedToBaseline
- Signature
-
isNegativeValuesStackedToBaseline (seriesIndex: number): boolean
Specify how negative values are treated in stacked series.
Note: If true, negative values will be stacked on the base line. If false, negative values will be stacked in relation to their previous values in the stack.
isSameChartAs
- 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
moveCustomSortValuesInOrderByList
- Signature
-
moveCustomSortValuesInOrderByList (fromIndex: number, toIndex: number): void
Moves the custom sort values in-place for the order by list in the config.
Note: This method should only be used when the data sort order is set to SerialChartDataSortingKinds.customSort
via setDataSortOrder.
moveSeries
- Signature
-
moveSeries (fromIndex: number, toIndex: number): void
Moves a series from one index in the series array to another.
rebuildSeries
- Signature
-
rebuildSeries (): Promise<void>
Rebuilds the series based on the current configuration.
recall
- Signature
-
recall (configRevision?: number): ChartConfig | 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
| Parameter | Type | Description | Required |
|---|---|---|---|
| configRevision | | |
- Returns
- ChartConfig | undefined
resetTimeInterval
- Signature
-
resetTimeInterval (): void
Resets the time interval to default for a temporal line chart.
- Returns
- void
setAreaColor
- Signature
-
setAreaColor (color: Color | undefined, seriesIndex: number): void
Specify the color of the filled area.
Note: This method will only work if the series is a line series.
Note: color will be applied only if setAreaVisible is true, and is defaulted to the line color if not provided.
setAssignToSecondValueAxis
- Signature
-
setAssignToSecondValueAxis (assign: boolean, seriesIndex: number): void
Sets whether the series should be assigned to the second value axis.
setAxisLabelsVisibility
- Signature
-
setAxisLabelsVisibility (isVisible: boolean, axisIndex?: number): void
Sets the visibility of the specified axis labels.
setAxisScrollbar
- Signature
-
setAxisScrollbar (scrollbar: WebChartAxisScrollBar, axisIndex: number): void
Sets the scrollbar configuration for zooming and panning along the specified axis.
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| scrollbar | The scrollbar configuration to set. | | |
| axisIndex | Axis index for the chart: | |
- Returns
- void
- Example
- // Sets the scrollbar for the x-axischartModel.setAxisScrollbar({visible: true,width: 20,color: [70, 174, 211, 255],gripSize: 32,margin: 8,},0,);// Sets the scrollbar for the y-axischartModel.setAxisScrollbar({visible: true,width: 20,color: [158, 194, 49, 255],gripSize: 32,margin: 8,},1,);
setAxisTitleSymbol
- Signature
-
setAxisTitleSymbol (titleSymbol: WebChartTextSymbol | undefined, axisIndex?: number): void
Sets the title text symbol for the specified axis. Contains styling information such as font, color, and symbol style.
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| titleSymbol | The title text symbol to set. | | |
| axisIndex | Axis index for the chart: | |
- Returns
- void
setAxisTitleText
- Signature
-
setAxisTitleText (titleText: string, axisIndex: number): void
Sets the title text for the specified axis.
setAxisTitleVisibility
- Signature
-
setAxisTitleVisibility (isVisible: boolean, axisIndex?: number): void
Sets the visibility of the specified axis title.
setAxisValueFormat
- Signature
-
setAxisValueFormat (axisIndex: number, valueFormat?: CategoryFormatOptions | DateTimeFormatOptions | NumberFormatOptions): void
Sets the value format for the specified axis.
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| axisIndex | Axis index for the chart: | | |
| valueFormat | The value format to set. | |
- Returns
- void
setAxisVisibility
- Signature
-
setAxisVisibility (isVisible: boolean, axisIndex: number): void
Sets the visibility of the specified axis.
setBuffer
- Signature
-
setBuffer (buffer: boolean, axisIndex?: number): void
Sets the buffer for the specified axis.
- This setting is only applicable to the axis of type
ValueAxis
with setBuffer | without setBuffer |
|---|---|
![]() | ![]() |
setDataFilters
- Signature
-
setDataFilters (newDataFilter: WebChartDataFilters | undefined): Promise<void>
Sets the data filter for the bar chart.
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| newDataFilter | The new data filter. | |
setDataLabelsSymbol
- Signature
-
setDataLabelsSymbol (newDataLabelsSymbol: WebChartTextSymbol | undefined, seriesIndex: number): void
Sets the data labels text symbol for a specific series in the chart config.
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| newDataLabelsSymbol | | | |
| seriesIndex | | |
- Returns
- void
- Example
- barChartModel.setDataLabelsSymbol({type: "esriTS",color: [255, 0, 0, 255],font: {size: 15,},},0,);
setDataSortOrder
- Signature
-
setDataSortOrder (newSortOrder: HeatChartDataSortingKinds | SerialChartDataSortingKinds, orderByList?: string[]): void
- Since
- ArcGIS Maps SDK for JavaScript 5.2
Sets the data sort order for the chart.
Data sort orders the chart's categories or numeric values. It applies whether the chart has one series or many. This is distinct from setOrderOfSeries, which reorders the series themselves and only has an effect on multi-series charts.
Sort order kinds:
xAxisAsc/xAxisDesc— order by category axis values ascending or descendingyAxisAsc/yAxisDesc— order by numeric values ascending or descendingcustomSort— order by an explicit category list (orderByList)
setDataTooltipFontSize
- Signature
-
setDataTooltipFontSize (fontSize: number | undefined, seriesIndex: number): void
Sets the data tooltip font size for a series.
setDataTooltipReverseColor
- Signature
-
setDataTooltipReverseColor (reverseColor: boolean, seriesIndex?: number): void
Sets the setting of the dataTooltipReverseColor property.
setDataTooltipValueFormat
- Signature
-
setDataTooltipValueFormat (seriesIndex: number, valueFormat: NumberFormatOptions | undefined): void
Sets the data tooltip value format for a series.
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| seriesIndex | The index of the series to set the value format for. | | |
| valueFormat | The value format to set. | |
- Returns
- void
setDataTooltipVisibility
- Signature
-
setDataTooltipVisibility (visibility: boolean, seriesIndex?: number): void
Sets the visibility of the data tooltips.
setDisplayCursorTooltip
- Signature
-
setDisplayCursorTooltip (displayCursorTooltip: boolean, axisIndex?: number): void
Sets the display cursor tooltip setting for the specified axis.
setDisplayZeroLine
- Signature
-
setDisplayZeroLine (displayZeroLine: boolean, axisIndex?: number): void
Sets the display zero line setting for the specified axis.
- This setting is only applicable to the axis of type
ValueAxis.
setGridLinesSymbol
- Signature
-
setGridLinesSymbol (linesSymbol: ISimpleLineSymbol | undefined, axisIndices?: number[]): void
Sets the grid lines symbol. Contains styling information such as line width, line style, and line color.
- See also
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| linesSymbol | The grid lines symbol. | | |
| axisIndices | number[] | The indices of the axes to set the grid lines symbol for. If omitted, the symbol is applied to all axes. | |
- Returns
- void
- Example
- // Set the grid lines symbol for all axes since `axisIndices` is omittedchartModel.setGridLinesSymbol({type: "esriSLS",style: "esriSLSDashDot",color: [0, 0, 128, 255],width: 3,});

setGuideAbove
- Signature
-
setGuideAbove (above: boolean, index?: number, orientation?: GuideOrientation): void
Sets whether the guide should be rendered above the other chart elements.
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| above | New above boolean to set. | | |
| index | Default | | |
| orientation | Default | |
- Returns
- void
setGuideEnd
- Signature
-
setGuideEnd (end: Date | number | string | null | undefined, index?: number, orientation?: GuideOrientation): void
Sets the end value of a guide.
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| end | New end value to set. | | |
| index | Default | | |
| orientation | Default | |
- Returns
- void
setGuideLabelText
- Signature
-
setGuideLabelText (labelText: string, index?: number, orientation?: GuideOrientation): void
Sets the guide label text.
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| labelText | New label text to set. | | |
| index | Default | | |
| orientation | Default | |
- Returns
- void
setGuideName
- Signature
-
setGuideName (name: string, index?: number, orientation?: GuideOrientation): void
Sets the name of a guide.
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| name | New name to set. | | |
| index | Default | | |
| orientation | Default | |
- Returns
- void
setGuideStart
- Signature
-
setGuideStart (start: Date | number | string | null, index?: number, orientation?: GuideOrientation): void
Sets the start value of a guide.
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| start | New start value to set. | | |
| index | Default | | |
| orientation | Default | |
- Returns
- void
setGuideStyle
- Signature
-
setGuideStyle (style: ISimpleFillSymbol | ISimpleLineSymbol, index?: number, orientation?: GuideOrientation): void
Sets the guide style.
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| style | New style to set. | | |
| index | Default | | |
| orientation | Default | |
- Returns
- void
- Example
- chartModel.setGuideStyle({type: "esriSLS",color: [0, 200, 0, 255],width: 2,},1,);
setGuideTooltipReverseColor
- Signature
-
setGuideTooltipReverseColor (reverseColor: boolean, index?: number, orientation?: GuideOrientation): void
Sets whether the tooltip text color should be reversed for a guide.
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| reverseColor | New reverseColor boolean to set. | | |
| index | The index of the guide in the list of guides for the given axis orientation. If omitted, all guides for the orientation will be updated. | | |
| orientation | The axis orientation of the guide. | |
- Returns
- void
setGuideVisibility
- Signature
-
setGuideVisibility (visible: boolean, index?: number, orientation?: GuideOrientation): void
Sets whether a guide is visible.
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| visible | New visibility to set. | | |
| index | The index of the guide in the list of guides for the given axis orientation. If omitted, all guides for the orientation will be updated. | | |
| orientation | Default | |
- Returns
- void
setHorizontalAxisLabelsBehavior
- Signature
-
setHorizontalAxisLabelsBehavior (horizontalBehavior: WebChartLabelBehavior): void
Sets the horizontal axis labels behavior for the chart.
- Default behavior is
rotate, except for histogram where the default ishide.
hide | rotate | stagger | wrap |
|---|---|---|---|
![]() | ![]() | ![]() | ![]() |
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| horizontalBehavior | The behavior for the horizontal axis labels. | |
- Returns
- void
setIntegerOnlyValues
- Signature
-
setIntegerOnlyValues (integerOnlyValues: boolean, axisIndex?: number): void
Sets the integer only values setting for the specified axis.
- This setting is only applicable to the axis of type
ValueAxis.
Parameters
- Returns
- void
setLogarithmic
- Signature
-
setLogarithmic (isLogarithmic: boolean, axisIndex: number): void
Sets whether logarithmic scale is enabled for the specified axis.
X-axis (axisIndex: 0) | Primary y-axis (axisIndex: 1) | Both axes |
|---|---|---|
![]() | ![]() | ![]() |
Parameters
- Returns
- void
- Example
- // Apply a logarithmic scale to the x-axis (index 0) and primary y-axis (index 1)chartModel.setLogarithmic(true, 0);chartModel.setLogarithmic(true, 1);
setMaxBound
- Signature
-
setMaxBound (newMaxBound: number | null, axisIndex: number): void
Sets the maximum bound for the specified axis.
setMinBound
- Signature
-
setMinBound (newMinBound: number | null, axisIndex: number): void
Sets the minimum bound for the specified axis.
setNegativeValuesStackedToBaseline
- Signature
-
setNegativeValuesStackedToBaseline (stackNegativeValuesToBaseline: boolean, seriesIndex: number): void
Specify how negative values are treated in stacked series.
Note: If true, negative values will be stacked on the base line. If false, negative values will be stacked in relation to their previous values in the stack.
setOrderOfSeries
- Signature
-
setOrderOfSeries (newOrder: string[]): void
Sets the order of the series array by providing an array of series ids.
Series order reorders the series themselves (legend and draw order). Use this only for a multi-series chart; on a single-series chart it has no effect.
This is distinct from setDataSortOrder, which orders categories or numeric values within the chart data.
setSeriesColor
- Signature
-
setSeriesColor (newColor: Color | undefined, seriesIndex: number): void
Sets the color of the series based on the series index.
setSeriesHideOversizedSideBySideLabels
- Signature
-
setSeriesHideOversizedSideBySideLabels (hide: boolean | undefined, seriesIndex?: number): void
Sets whether to hide oversized data labels of the side-by-side series based on the series index.
Note: This method will only work if the series is a bar chart series.
setSeriesHideOversizedStackedLabels
- Signature
-
setSeriesHideOversizedStackedLabels (hide: boolean | undefined, seriesIndex?: number): void
Sets whether to hide oversized data labels of the stacked series based on the series index. Note: This method will only work if the series is a bar chart series.
setSeriesLineStyle
- Signature
-
setSeriesLineStyle (newStyle: RESTSimpleLineSymbolStyle | undefined, seriesIndex?: number): void
Sets the line style of the series based on the series index.
Note: This method will only work if the series is a line chart series.
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| newStyle | The new style for the series. | | |
| seriesIndex | The index of the series. If omitted, all compatible series will be updated. | |
- Returns
- void
setSeriesMarkerStyle
- Signature
-
setSeriesMarkerStyle (newStyle: RESTSimpleMarkerSymbolStyle | undefined, seriesIndex?: number): void
Sets the marker style of the series based on the series index. Note: This method will only work if the series is a line chart series.
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| newStyle | The new style for the series. | | |
| seriesIndex | The index of the series. If omitted, all compatible series will be updated. | |
- Returns
- void
setSeriesName
- Signature
-
setSeriesName (name: string, seriesIndex: number): void
Sets name of the series based on the series index.
setSeriesToSecondaryYAxis
- Signature
-
setSeriesToSecondaryYAxis (assign: boolean, seriesIndex: number): void
Sets whether the series should be assigned to the secondary y-axis.
Parameters
- Returns
- void
- Example
- chartModel.setSeriesToSecondaryYAxis(true, 0); // Assigns the first series to the secondary y-axischartModel.setSeriesToSecondaryYAxis(false, 1); // Removes the second series from the secondary y-axis
setSeriesType
- Signature
-
setSeriesType (seriesIndex: number, seriesType: WebChartTypes): void
Changes the chart series type at the specified index from bar to line and vice-versa.
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| seriesIndex | The index of the series to update. | | |
| seriesType | The new chart series type to apply. | |
- Returns
- void
setSeriesVisibility
- Signature
-
setSeriesVisibility (props: LegendItemVisibility): void
Sets the visibility of a series.
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| props | Visibility options for the series. | |
- Returns
- void
setSortOrder
- Signature
-
setSortOrder (newSortOrder: HeatChartDataSortingKinds | SerialChartDataSortingKinds, orderByList?: string[]): void
Sets the data sort order for the chart.
setTickSpacing
- Signature
-
setTickSpacing (tickSpacing: number, axisIndex: number): void
Sets the tick spacing for the specified axis.
setTooltipReverseColor
- Signature
-
setTooltipReverseColor (reverseColor: boolean, index?: number, orientation?: GuideOrientation): void
Sets whether the tooltip text color should be reversed for a guide.
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| reverseColor | New reverseColor boolean to set. | | |
| index | The index of the guide in the list of guides for the given axis orientation. If omitted, all guides for the orientation will be updated. | | |
| orientation | The axis orientation of the guide. | |
- Returns
- void
setup
- Signature
-
setup (params: ModelParams<ChartConfig<typeof ModelTypes.ComboBarLineChart>>): Promise<void>
Completes the async setup process for the chart model. Must be called before using the model.
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| params | ModelParams<ChartConfig<typeof ModelTypes.ComboBarLineChart>> | | |
setVerticalAxisLabelsBehavior
- Signature
-
setVerticalAxisLabelsBehavior (verticalBehavior: WebChartLabelBehavior): void
Sets the vertical axis labels behavior for the chart.
hide | wrap |
|---|---|
![]() | ![]() |
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| verticalBehavior | The behavior for the vertical axis labels. | |
- Returns
- void
update
- Signature
-
update (): Promise<void>
Can be awaited to allow any pending async updates to complete.
updateSeriesFromLayerFilter
- Signature
-
updateSeriesFromLayerFilter (): void
Updates the series based on the layer filter.
- Returns
- void










