ESM
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

inherited Constructor
Inherited from: ChartModelBase

Parameters

ParameterTypeDescriptionRequired
args
any[]

Properties

PropertyTypeClass
inherited
inherited
inherited
inherited
inherited
inherited
inherited
IDrawingInfo["renderer"] | undefined
readonly inherited
readonly inherited
inherited
inherited
inherited
inherited
inherited
inherited
any
inherited
inherited
inherited
inherited
readonly 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
readonly inherited
inherited
inherited
inherited

aggregationType

inherited Property
Type
WebChartStatisticType
Inherited from: SerialChartModel

The aggregation type for the chart.

asyncUpdatesPromise

inherited Property
Type
Promise<void>
Inherited from: ChartModelBase

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

inherited Property
Type
WebChartTextSymbol | undefined
Inherited from: WithAxisLabelsSymbol

Axis labels text symbol (font, color, style).

axisLinesSymbol

inherited Property
Type
ISimpleLineSymbol | undefined
Inherited from: WithAxisLinesSymbol

Axis lines symbol (line width, style, color).

backgroundColor

inherited Property
Type
Color | undefined
Inherited from: WithBackgroundColor

The background color of the chart.

binTemporalData

inherited Property
Type
boolean
Inherited from: SerialChartModel

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.

chartId

inherited Property
Type
string | undefined
Inherited from: WithChartId

The chart ID.

chartRenderer

autocast inherited Property
Type
IDrawingInfo["renderer"] | undefined
Inherited from: WithChartRenderer

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

inherited Property
Type
boolean
Inherited from: WithChartSubtitleVisibility

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

readonlyinherited Property
Type
ChartSubType
Inherited from: WithChartSubType

The chart sub type of the series.

chartTitleVisibility

inherited Property
Type
boolean
Inherited from: WithChartTitleVisibility

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.

chartType

readonlyinherited Property
Type
ChartTypes
Inherited from: ChartModelBase

The chart type.

colorMatch

inherited Property
Type
boolean
Inherited from: WithColorMatch

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

inherited Property
Type
ChartConfig
Inherited from: WithConfig

The current chart configuration object.

cornerRadius

inherited Property
Type
number | undefined
Inherited from: WithRoundedCorners

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

inherited Property
Type
WebChartCursorCrosshair | undefined
Inherited from: ModelWithMultiAxes

Gets the cursor crosshair.

cursorCrosshairHorizontalLineVisibility

inherited Property
Type
boolean
Inherited from: ModelWithMultiAxes

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 false will be returned.

cursorCrosshairStyle

inherited Property
Type
ISimpleLineSymbol | undefined
Inherited from: ModelWithMultiAxes

Gets the style of the cursor's crosshair.

cursorCrosshairVerticalLineVisibility

inherited Property
Type
boolean
Inherited from: ModelWithMultiAxes

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 false will be returned.

dataLabelsSymbol

inherited Property
Type
WebChartTextSymbol | undefined
Inherited from: WithDataLabelsSymbol

Data labels text symbol (font, color, style).

dataLabelsVisibility

inherited Property
Type
boolean
Inherited from: WithDataLabelsVisibility

Whether data labels are visible.

dataStore

inherited Property
Type
any
Inherited from: ChartModelBase

Data store object that can be used to store any data needed for the chart.

descriptionSymbol

inherited Property
Type
WebChartTextSymbol | undefined
Inherited from: WithDescriptionSymbol

The description text symbol. Contains styling information such as font, color, and symbol style.

descriptionText

inherited Property
Type
string
Inherited from: WithDescriptionText

descriptionVisibility

inherited Property
Type
boolean
Inherited from: WithDescriptionVisibility

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

inherited Property
Type
boolean
Inherited from: WithFetchNULLValues

Whether to fetch null values for them to be counted or displayed as categories on the chart.

guideLabelsSymbol

inherited Property
Type
WebChartTextSymbol | undefined
Inherited from: ModelWithGuides

The guide labels text symbol (font, color, style).

layer

readonlyinherited Property
Type
SupportedLayer | SupportedRasterLayer | undefined
Inherited from: WithLayer

The chart model's layer.

legendMaxHeight

inherited Property
Type
number | undefined
Inherited from: ModelWithLegend

Maximum legend height.

legendPosition

inherited Property
Type
WebChartLegendPositions
Inherited from: ModelWithLegend

Legend position: top, bottom, left, or right.

legendRoundMarker

inherited Property
Type
boolean
Inherited from: ModelWithLegend

Whether legend markers are rounded.

legendTextSymbol

inherited Property
Type
WebChartTextSymbol | undefined
Inherited from: ModelWithLegend

Legend item text symbol (font, color, style).

legendTitleSymbol

inherited Property
Type
WebChartTextSymbol | undefined
Inherited from: ModelWithLegend

Legend title text symbol (font, color, style).

legendTitleText

inherited Property
Type
string
Inherited from: ModelWithLegend

The legend title text.

legendTitleVisibility

inherited Property
Type
boolean
Inherited from: ModelWithLegend

Whether the legend title is visible.

legendVisibility

inherited Property
Type
boolean
Inherited from: ModelWithLegend

Whether the legend title is visible.

maxXBound

inherited Property
Type
number | null
Inherited from: WithMaxXBound

Maximum bound set for the x-axis.

null indicates no explicit maximum.

minXBound

inherited Property
Type
number | null
Inherited from: WithMinXBound

Minimum bound set for the x-axis.

null indicates no explicit minimum.

nullCategory

inherited Property
Type
WebChartNullCategory | undefined
Inherited from: SerialChartModel

The null category configuration of the chart.

The following to be set on the model for the null category to be applied:

  • fetchNULLValues to be set to true on the model.
  • colorMatch to be set to false on the model

nullPolicy

inherited Property
Type
WebChartNullPolicyTypes | undefined
Inherited from: ModelWithTemporalBinning

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

autocast inherited Property
Type
string[]
Inherited from: SerialChartModel

The numeric fields array for the chart.

orderByList

inherited Property
Type
string[]
Inherited from: SerialChartModel

The list of values for custom sort.

revision

readonlyinherited Property
Type
number
Inherited from: ChartModelBase

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

rotated

inherited Property
Type
boolean
Inherited from: WithRotatedState

Whether the chart is rotated.

rotatedState

deprecatedinherited Property
Type
boolean
Inherited from: WithRotatedState

Whether the chart is rotated.

roundCorners

inherited Property
Type
boolean
Inherited from: WithRoundedCorners

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

readonlyinherited Property
Type
number
Inherited from: WithSeriesLength

The length of the series array.

splitByField

inherited Property
Type
string
Inherited from: SerialChartModel

The split-by field for the chart.

splitByValues

readonlyinherited Property
Type
string[]
Inherited from: WithSplitByValues

The split-by values for the chart.

stackedType

inherited Property
Type
WebChartStackedKinds | undefined
Inherited from: SerialChartModel

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

inherited Property
Type
WebChartTextSymbol | undefined
Inherited from: WithSubtitleSymbol

The subtitle text symbol. Contains styling information such as font, color, and symbol style.

subtitleText

inherited Property
Type
string
Inherited from: WithSubtitleText

The chart subtitle text.

temporalBinningSize

inherited Property
Type
number | undefined
Inherited from: ModelWithTemporalBinning

Time interval size for a temporal bar chart or line chart.

temporalBinningUnit

inherited Property
Type
WebChartTemporalBinningUnits | undefined
Inherited from: ModelWithTemporalBinning

Time interval units for a temporal bar chart or line chart.

timeAggregationType

inherited Property
Type
WebChartTimeAggregationTypes | undefined
Inherited from: ModelWithTemporalBinning

Time aggregation type for a temporal bar chart or line chart.

timeZone

inherited Property
Type
string | undefined
Inherited from: WithTimeZone

Gets the time zone for the chart.

titleSymbol

inherited Property
Type
WebChartTextSymbol | undefined
Inherited from: WithTitleSymbol

The title text symbol. Contains styling information such as font, color, and symbol style.

titleText

inherited Property
Type
string
Inherited from: WithTitleText

The chart title text.

trimIncompleteTimeInterval

inherited Property
Type
boolean | undefined
Inherited from: ModelWithTemporalBinning

Whether to trim incomplete time intervals for a temporal bar chart or line chart.

version

readonlyinherited Property
Type
string | undefined
Inherited from: WithVersion

The version of the chart configuration.

xAxisField

inherited Property
Type
string
Inherited from: SerialChartModel

The x-axis field for the chart.

xAxisLabelsVisibility

inherited Property
Type
boolean
Inherited from: WithXAxisLabelsVisibility

Whether the x-axis labels are visible.

xAxisTitleSymbol

inherited Property
Type
WebChartTextSymbol | undefined
Inherited from: WithXAxisTitleSymbol

X-axis title text symbol (font, color, style).

xAxisTitleText

inherited Property
Type
string
Inherited from: WithXAxisTitleText

The x-axis title text.

xAxisTitleVisibility

inherited Property
Type
boolean
Inherited from: WithXAxisTitleVisibility

Whether the x-axis title is visible. true: X-axis title is visible. false: X-axis title is hidden.

Methods

MethodSignatureClass
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
getAxisLabelsVisibility(axisIndex: number): boolean
inherited
getAxisScrollbar(axisIndex: number): WebChartAxisScrollBar | undefined
inherited
getAxisTitleSymbol(axisIndex: number): WebChartTextSymbol | undefined
inherited
getAxisTitleText(axisIndex: number): string
getAxisTitleVisibility(axisIndex: number): boolean
inherited
getAxisValueFormat(axisIndex: number): CategoryFormatOptions | DateTimeFormatOptions | NumberFormatOptions | undefined
inherited
getAxisVisibility(axisIndex: number): boolean
inherited
getBuffer(axisIndex: number): boolean
getCustomSortValues(num?: number): Promise<string[]>
inherited
getDataFilters(): WebChartDataFilters | undefined
getDataLabelsSymbol(seriesIndex: number): WebChartTextSymbol | undefined
inherited
getDataSortOrder(): HeatChartDataSortingKinds | SerialChartDataSortingKinds
getDataTooltipFontSize(seriesIndex: number): number | undefined
getDataTooltipReverseColor(seriesIndex?: number): boolean
getDataTooltipValueFormat(seriesIndex: number): NumberFormatOptions | undefined
getDataTooltipVisibility(seriesIndex?: number): boolean
getDefaultXAxisTitleText(): string
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
getGuideTooltipReverseColor(index: number, orientation?: GuideOrientation): boolean
inherited
getGuideVisibility(index?: number, orientation?: GuideOrientation): boolean
getHorizontalAxisLabelsBehavior(): WebChartLabelBehavior
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
getSeriesToSecondaryYAxis(seriesIndex: number): boolean
getSeriesVisibility(seriesIndex: number): boolean
deprecated inherited
getSortOrder(): HeatChartDataSortingKinds | SerialChartDataSortingKinds
inherited
getTickSpacing(axisIndex: number): number | undefined
deprecated inherited
getTooltipReverseColor(index: number, orientation?: GuideOrientation): boolean
getVerticalAxisLabelsBehavior(): WebChartLabelBehavior
inherited
getXGuidesLength(): number | undefined
inherited
getYGuidesLength(): number | undefined
isAreaVisible(seriesIndex: number): boolean
isLineSmoothed(seriesIndex: number): boolean
isMarkerVisible(seriesIndex: number): boolean
isNegativeValuesStackedToBaseline(seriesIndex: number): boolean
inherited
isSameChartAs(otherModel: ChartModel | undefined): boolean
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
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
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>
setDataLabelsSymbol(newDataLabelsSymbol: WebChartTextSymbol | undefined, seriesIndex: number): void
inherited
setDataSortOrder(newSortOrder: HeatChartDataSortingKinds | SerialChartDataSortingKinds, orderByList?: string[]): void
setDataTooltipFontSize(fontSize: number | undefined, seriesIndex: number): void
setDataTooltipReverseColor(reverseColor: boolean, seriesIndex?: number): void
setDataTooltipValueFormat(seriesIndex: number, valueFormat: NumberFormatOptions | undefined): void
setDataTooltipVisibility(visibility: boolean, seriesIndex?: number): void
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
setGuideTooltipReverseColor(reverseColor: boolean, index?: number, orientation?: GuideOrientation): void
inherited
setGuideVisibility(visible: boolean, index?: number, orientation?: GuideOrientation): void
setHorizontalAxisLabelsBehavior(horizontalBehavior: WebChartLabelBehavior): void
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
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
setSeriesToSecondaryYAxis(assign: boolean, seriesIndex: number): void
setSeriesType(seriesIndex: number, seriesType: WebChartTypes): void
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>
setVerticalAxisLabelsBehavior(verticalBehavior: WebChartLabelBehavior): void
inherited
update(): Promise<void>
deprecated inherited
updateSeriesFromLayerFilter(): void

addXAxisGuide

inherited Method
Signature
addXAxisGuide (name: string, index?: number): void
Inherited from: ModelWithXGuides

Adds an X-axis guide.

Parameters

ParameterTypeDescriptionRequired
name

The name of the guide.

index

The index to insert the new guide in the list of X-axis guides. If left undefined, the guide is appended to the end of the list.

Returns
void

addYAxisGuide

inherited Method
Signature
addYAxisGuide (name: string, index?: number): void
Inherited from: ModelWithYGuides

Adds a Y-axis guide.

Parameters

ParameterTypeDescriptionRequired
name

The name of the guide.

index

The index to insert the new guide in the list of Y-axis guides. If left undefined, the guide is appended to the end of the list.

Returns
void

deleteXAxisGuide

inherited Method
Signature
deleteXAxisGuide (index?: number): void
Inherited from: ModelWithXGuides

Deletes an X-axis guide.

Parameters

ParameterTypeDescriptionRequired
index

The index of the guide to delete in the list of X-axis guides. If left undefined, the last guide in the list is deleted.

Returns
void

deleteYAxisGuide

inherited Method
Signature
deleteYAxisGuide (index?: number): void
Inherited from: ModelWithYGuides

Deletes a Y-axis guide.

Parameters

ParameterTypeDescriptionRequired
index

The index of the guide to delete in the list of Y-axis guides. If left undefined, the last guide in the list is deleted.

Returns
void

generateChartTitle

inherited Method
Signature
generateChartTitle (): string
Inherited from: ChartModelBase

Generate the proper chart title from the current config.

Returns
string

generateXAxisTitle

inherited Method
Signature
generateXAxisTitle (): string
Inherited from: WithGenerateXAxisTitle

Generate the proper x-axis title from the current config.

Returns
string

generateYAxisTitle

inherited Method
Signature
generateYAxisTitle (): string
Inherited from: SerialChartModel

Generate the proper y-axis title given the current config.

Returns
string

getAreaColor

Method
Signature
getAreaColor (seriesIndex: number): Color | undefined

Gets the color of the filled area for line chart. Note: areaColor will be applied only if showArea is true, and is defaulted to the line color if not provided.

Parameters

ParameterTypeDescriptionRequired
seriesIndex

The index of the series.

Returns
Color | undefined

getAssignToSecondValueAxis

deprecatedinherited Method
Signature
getAssignToSecondValueAxis (seriesIndex: number): boolean
Inherited from: SerialChartModel

Gets whether the series should be assigned to the second value axis.

Parameters

ParameterTypeDescriptionRequired
seriesIndex

The index of the series.

Returns
boolean

getAxisLabelsVisibility

inherited Method
Signature
getAxisLabelsVisibility (axisIndex: number): boolean
Inherited from: ModelWithMultiAxes

Gets the visibility of the specified axis labels.

Parameters

ParameterTypeDescriptionRequired
axisIndex

Axis index for the chart: 0 for x-axis, 1 for primary y-axis, and 2 for secondary y-axis.

Returns
boolean

getAxisScrollbar

inherited Method
Signature
getAxisScrollbar (axisIndex: number): WebChartAxisScrollBar | undefined
Inherited from: ModelWithMultiAxes

Gets the scrollbar configuration for the specified axis.

Parameters

ParameterTypeDescriptionRequired
axisIndex

Axis index for the chart: 0 for x-axis, 1 for primary y-axis, and 2 for secondary y-axis.

Returns
WebChartAxisScrollBar | undefined

getAxisTitleSymbol

inherited Method
Signature
getAxisTitleSymbol (axisIndex: number): WebChartTextSymbol | undefined
Inherited from: ModelWithMultiAxes

Gets the specified title text symbol. Contains styling information such as font, color, and symbol style.

Parameters

ParameterTypeDescriptionRequired
axisIndex

The index of the axis to get the title symbol for

Returns
WebChartTextSymbol | undefined

getAxisTitleText

inherited Method
Signature
getAxisTitleText (axisIndex: number): string
Inherited from: ModelWithMultiAxes

Gets the title text of the specified axis.

Parameters

ParameterTypeDescriptionRequired
axisIndex

Axis index for the chart: 0 for x-axis, 1 for primary y-axis, and 2 for secondary y-axis.

Returns
string

getAxisTitleVisibility

inherited Method
Signature
getAxisTitleVisibility (axisIndex: number): boolean
Inherited from: ModelWithMultiAxes

Gets the visibility of the specified axis title.

Parameters

ParameterTypeDescriptionRequired
axisIndex

Axis index for the chart: 0 for x-axis, 1 for primary y-axis, and 2 for secondary y-axis.

Returns
boolean

getAxisValueFormat

inherited Method
Signature
getAxisValueFormat (axisIndex: number): CategoryFormatOptions | DateTimeFormatOptions | NumberFormatOptions | undefined
Inherited from: ModelWithMultiAxes

Gets the value format for the specified axis.

Parameters

ParameterTypeDescriptionRequired
axisIndex

Axis index for the chart: 0 for x-axis, 1 for primary y-axis, and 2 for secondary y-axis.

Returns
CategoryFormatOptions | DateTimeFormatOptions | NumberFormatOptions | undefined

getAxisVisibility

inherited Method
Signature
getAxisVisibility (axisIndex: number): boolean
Inherited from: ModelWithMultiAxes

Gets the visibility of the specified axis.

Parameters

ParameterTypeDescriptionRequired
axisIndex

Axis index for the chart: 0 for x-axis, 1 for primary y-axis, and 2 for secondary y-axis.

Returns
boolean

getBuffer

inherited Method
Signature
getBuffer (axisIndex: number): boolean
Inherited from: ModelWithMultiAxes

Gets the buffer setting for the specified axis.

  • This setting is only applicable to the axis of type ValueAxis.
  • If the buffer is not set on the axis, the default value of false will be returned.

Parameters

ParameterTypeDescriptionRequired
axisIndex

Axis index for the chart: 0 for x-axis, 1 for primary y-axis, and 2 for secondary y-axis.

Returns
boolean

getCustomSortValues

inherited Method
Signature
getCustomSortValues (num?: number): Promise<string[]>
Inherited from: SerialChartModel

Gets the list of the category values for the chart.

Parameters

ParameterTypeDescriptionRequired
num

The maximum number of category values to fetch.

Returns
Promise<string[]>

getDataFilters

inherited Method
Signature
getDataFilters (): WebChartDataFilters | undefined
Inherited from: WithDataFilters

Gets the data filter for the chart.

getDataLabelsSymbol

inherited Method
Signature
getDataLabelsSymbol (seriesIndex: number): WebChartTextSymbol | undefined
Inherited from: WithDataLabelsSymbol

Gets the data labels text symbol for a specific series in the chart config.

Parameters

ParameterTypeDescriptionRequired
seriesIndex
Returns
WebChartTextSymbol | undefined

getDataSortOrder

inherited Method
Signature
getDataSortOrder (): HeatChartDataSortingKinds | SerialChartDataSortingKinds
Inherited from: SerialChartModel
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 descending
  • yAxisAsc / yAxisDesc — order by numeric values ascending or descending
  • customSort — order by an explicit category list (orderByList)
Returns
HeatChartDataSortingKinds | SerialChartDataSortingKinds

The current data sort order kind.

getDataTooltipFontSize

inherited Method
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.

Parameters

ParameterTypeDescriptionRequired
seriesIndex

The index of the series to retrieve the font size for.

Returns
number | undefined

getDataTooltipReverseColor

inherited Method
Signature
getDataTooltipReverseColor (seriesIndex?: number): boolean
Inherited from: ModelWithTooltips

Gets the setting of the dataTooltipReverseColor property.

  • If the dataTooltipReverseColor is not set on the series, the default value of false will be returned.

Parameters

ParameterTypeDescriptionRequired
seriesIndex

The index of the series. If omitted, the first series will be used.

Returns
boolean

getDataTooltipValueFormat

inherited Method
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

ParameterTypeDescriptionRequired
seriesIndex

The index of the series to retrieve the value format for.

Returns
NumberFormatOptions | undefined

getDataTooltipVisibility

inherited Method
Signature
getDataTooltipVisibility (seriesIndex?: number): boolean
Inherited from: ModelWithTooltips

Gets the visibility of the data tooltips.

  • If the visibility is not set on the series, the default value of true will be returned.

Parameters

ParameterTypeDescriptionRequired
seriesIndex

The index of the series. If omitted, the first series will be used.

Returns
boolean

getDefaultXAxisTitleText

inherited Method
Signature
getDefaultXAxisTitleText (): string
Inherited from: ModelWithMultiAxes

Get the default x-axis title text.

Returns
string

getDisplayCursorTooltip

inherited Method
Signature
getDisplayCursorTooltip (axisIndex: number): boolean
Inherited from: ModelWithMultiAxes

Gets the display cursor tooltip setting for the specified axis.

  • If displayCursorTooltip is not set on the axis, the default value of false will be returned.

Parameters

ParameterTypeDescriptionRequired
axisIndex

Axis index for the chart: 0 for x-axis, 1 for primary y-axis, and 2 for secondary y-axis.

Returns
boolean

getDisplayZeroLine

inherited Method
Signature
getDisplayZeroLine (axisIndex: number): boolean
Inherited from: ModelWithMultiAxes

Gets the display zero line setting for the specified axis.

  • This setting is only applicable to the axis of type ValueAxis.
  • If the displayZeroLine is not set on the axis, the default value of false will be returned.

Parameters

ParameterTypeDescriptionRequired
axisIndex

Axis index for the chart: 0 for x-axis, 1 for primary y-axis, and 2 for secondary y-axis.

Returns
boolean

getGridLinesSymbol

inherited Method
Signature
getGridLinesSymbol (): ISimpleLineSymbol | undefined
Inherited from: ModelWithMultiAxes

Gets the grid lines symbol. Contains styling information such as line width, line style, and line color.

getGuideAbove

inherited Method
Signature
getGuideAbove (index?: number, orientation?: GuideOrientation): boolean
Inherited from: ModelWithGuides

Gets whether the guide should be rendered above the other chart elements.

Parameters

ParameterTypeDescriptionRequired
index

Default 0. The index of the guide in the list of guides for the given axis orientation.

orientation

Default y. The axis orientation of the guide.

Returns
boolean

getGuideEnd

inherited Method
Signature
getGuideEnd (index?: number, orientation?: GuideOrientation): Date | number | string | null | undefined
Inherited from: ModelWithGuides

Gets the end value of a guide.

Parameters

ParameterTypeDescriptionRequired
index

Default 0. The index of the guide in the list of guides for the given axis orientation.

orientation

Default y. The axis orientation of the guide. If it's a gauge, the default is x

Returns
Date | number | string | null | undefined

getGuideLabelText

inherited Method
Signature
getGuideLabelText (index?: number, orientation?: GuideOrientation): string | undefined
Inherited from: ModelWithGuides

Gets the guide label text.

Parameters

ParameterTypeDescriptionRequired
index

Default 0. The index of the guide in the list of guides for the given axis orientation.

orientation

Default y. The axis orientation of the guide.

Returns
string | undefined

getGuideName

inherited Method
Signature
getGuideName (index?: number, orientation?: GuideOrientation): string | undefined
Inherited from: ModelWithGuides

Gets the name of a guide.

Parameters

ParameterTypeDescriptionRequired
index

Default 0. The index of the guide in the list of guides for the given axis orientation.

orientation

Default y. The axis orientation of the guide.

Returns
string | undefined

getGuideStart

inherited Method
Signature
getGuideStart (index?: number, orientation?: GuideOrientation): Date | number | string | null
Inherited from: ModelWithGuides

Gets the start value of a guide.

Parameters

ParameterTypeDescriptionRequired
index

Default 0. The index of the guide in the list of guides for the given axis orientation.

orientation

Default y. The axis orientation of the guide. If it's a gauge, the default is x

Returns
Date | number | string | null

getGuideStyle

inherited Method
Signature
getGuideStyle (index?: number, orientation?: GuideOrientation): ISimpleFillSymbol | ISimpleLineSymbol | undefined
Inherited from: ModelWithGuides

Gets the guide style.

Parameters

ParameterTypeDescriptionRequired
index

Default 0. The index of the guide in the list of guides for the given axis orientation.

orientation

Default y. The axis orientation of the guide.

Returns
ISimpleFillSymbol | ISimpleLineSymbol | undefined

getGuideTooltipReverseColor

inherited Method
Signature
getGuideTooltipReverseColor (index: number, orientation?: GuideOrientation): boolean
Inherited from: ModelWithGuides

Gets whether the tooltip text color should be reversed for a guide.

Parameters

ParameterTypeDescriptionRequired
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

inherited Method
Signature
getGuideVisibility (index?: number, orientation?: GuideOrientation): boolean
Inherited from: ModelWithGuides

Gets whether a guide is visible.

Parameters

ParameterTypeDescriptionRequired
index

Default 0. The index of the guide in the list of guides for the given axis orientation.

orientation

Default y. The axis orientation of the guide.

Returns
boolean

getHorizontalAxisLabelsBehavior

inherited Method
Signature
getHorizontalAxisLabelsBehavior (): WebChartLabelBehavior
Inherited from: ModelWithMultiAxes

Gets the horizontal axis labels behavior for the chart.

getIntegerOnlyValues

inherited Method
Signature
getIntegerOnlyValues (axisIndex: number): boolean
Inherited from: ModelWithMultiAxes

Gets the integer only values setting for the specified axis.

  • This setting is only applicable to the axis of type ValueAxis.
  • If the integerOnlyValues is not set on the axis, the default value of false will be returned.

Parameters

ParameterTypeDescriptionRequired
axisIndex

Axis index for the chart: 0 for x-axis, 1 for primary y-axis, and 2 for secondary y-axis.

Returns
boolean

getLogarithmic

inherited Method
Signature
getLogarithmic (axisIndex: number): boolean
Inherited from: ModelWithMultiAxes

Gets whether logarithmic scale is enabled for the specified axis.

Parameters

ParameterTypeDescriptionRequired
axisIndex

Axis index for the chart: 0 for x-axis, 1 for primary y-axis, and 2 for secondary y-axis.

Returns
boolean

getMaxBound

inherited Method
Signature
getMaxBound (axisIndex: number): number
Inherited from: ModelWithMultiAxes

Gets the maximum bound for the specified axis.

Parameters

ParameterTypeDescriptionRequired
axisIndex

Axis index for the chart: 0 for x-axis, 1 for primary y-axis, and 2 for secondary y-axis.

Returns
number

getMinBound

inherited Method
Signature
getMinBound (axisIndex: number): number
Inherited from: ModelWithMultiAxes

Gets the minimum bound for the specified axis.

Parameters

ParameterTypeDescriptionRequired
axisIndex

Axis index for the chart: 0 for x-axis, 1 for primary y-axis, and 2 for secondary y-axis.

Returns
number

getOrderOfSeries

inherited Method
Signature
getOrderOfSeries (): string[]
Inherited from: SerialChartModel

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

inherited Method
Signature
getSeriesColor (seriesIndex: number): Color | undefined
Inherited from: SerialChartModel

Gets the color of the series based on the series index. If the index is out of bounds, it will return undefined.

Parameters

ParameterTypeDescriptionRequired
seriesIndex

The index of the series.

Returns
Color | undefined

getSeriesHideOversizedSideBySideLabels

Method
Signature
getSeriesHideOversizedSideBySideLabels (seriesIndex: number): boolean | undefined

Gets whether to hide oversized data labels of the side-by-side series based on the series index.

If the index is out of bounds, it will return undefined.

Parameters

ParameterTypeDescriptionRequired
seriesIndex

The index of the series.

Returns
boolean | undefined

getSeriesHideOversizedStackedLabels

Method
Signature
getSeriesHideOversizedStackedLabels (seriesIndex: number): boolean | undefined

Gets whether to hide oversized data labels of the stacked series based on the series index. If the index is out of bounds, it will return undefined.

Parameters

ParameterTypeDescriptionRequired
seriesIndex

The index of the series.

Returns
boolean | undefined

getSeriesId

inherited Method
Signature
getSeriesId (seriesIndex: number): string | undefined
Inherited from: WithSeriesId

Gets the series ID for a given series index. If the series index is out of bounds, this function will return undefined.

Parameters

ParameterTypeDescriptionRequired
seriesIndex

The index of the series.

Returns
string | undefined

getSeriesIndex

inherited Method
Signature
getSeriesIndex (seriesId: string): number | undefined
Inherited from: WithSeriesIndex

Gets the series index for a given series ID. If the series ID is not found, this function will return undefined.

Parameters

ParameterTypeDescriptionRequired
seriesId

The ID of the series.

Returns
number | undefined

getSeriesLineStyle

Method
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

ParameterTypeDescriptionRequired
seriesIndex

The index of the series.

Returns
RESTSimpleLineSymbolStyle | undefined

getSeriesLineWidth

Method
Signature
getSeriesLineWidth (seriesIndex: number): number | undefined

Gets the line width of the series based on the series index. If the index is out of bounds, it will return undefined.

Parameters

ParameterTypeDescriptionRequired
seriesIndex

The index of the series.

Returns
number | undefined

getSeriesMarkerColor

Method
Signature
getSeriesMarkerColor (seriesIndex: number): Color | undefined

Gets the marker color of the series based on the series index.

If the index is out of bounds, it will return undefined.

Parameters

ParameterTypeDescriptionRequired
seriesIndex

The index of the series.

Returns
Color | undefined

getSeriesMarkerSize

Method
Signature
getSeriesMarkerSize (seriesIndex: number): number | undefined

Gets the marker size of the series based on the series index. If the index is out of bounds, it will return undefined.

Parameters

ParameterTypeDescriptionRequired
seriesIndex

The index of the series.

Returns
number | undefined

getSeriesMarkerStyle

Method
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

ParameterTypeDescriptionRequired
seriesIndex

The index of the series.

Returns
RESTSimpleMarkerSymbolStyle | undefined

getSeriesName

inherited Method
Signature
getSeriesName (seriesIndex: number): string | undefined
Inherited from: SerialChartModel

Gets the name of the series based on the series index. If the index is out of bounds, it will return undefined.

Parameters

ParameterTypeDescriptionRequired
seriesIndex

The index of the series.

Returns
string | undefined

getSeriesToSecondaryYAxis

inherited Method
Signature
getSeriesToSecondaryYAxis (seriesIndex: number): boolean
Inherited from: SerialChartModel

Gets whether the series should be assigned to the secondary y-axis.

Parameters

ParameterTypeDescriptionRequired
seriesIndex

The index of the series.

Returns
boolean

getSeriesVisibility

inherited Method
Signature
getSeriesVisibility (seriesIndex: number): boolean
Inherited from: WithSeriesVisibility

Gets the visibility of a series.

Parameters

ParameterTypeDescriptionRequired
seriesIndex

The series index

Returns
boolean

getSortOrder

deprecatedinherited Method
Signature
getSortOrder (): HeatChartDataSortingKinds | SerialChartDataSortingKinds
Inherited from: SerialChartModel

Gets the data sort order for the chart.

getTickSpacing

inherited Method
Signature
getTickSpacing (axisIndex: number): number | undefined
Inherited from: ModelWithMultiAxes

Gets the tick spacing setting for the specified axis.

Parameters

ParameterTypeDescriptionRequired
axisIndex

Axis index for the chart: 0 for x-axis, 1 for primary y-axis, and 2 for secondary y-axis.

Returns
number | undefined

getTooltipReverseColor

deprecatedinherited Method
Signature
getTooltipReverseColor (index: number, orientation?: GuideOrientation): boolean
Inherited from: ModelWithGuides

Gets whether the tooltip text color should be reversed for a guide.

Parameters

ParameterTypeDescriptionRequired
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

inherited Method
Signature
getVerticalAxisLabelsBehavior (): WebChartLabelBehavior
Inherited from: ModelWithMultiAxes

Gets the vertical axis labels behavior for the chart.

getXGuidesLength

inherited Method
Signature
getXGuidesLength (): number | undefined
Inherited from: ModelWithXGuides

Gets the number guides in the X-axis guides list.

Returns
number | undefined

The number of X-axis guides.

getYGuidesLength

inherited Method
Signature
getYGuidesLength (): number | undefined
Inherited from: ModelWithYGuides

Gets the number guides in the Y-axis guides list.

Returns
number | undefined

The number of Y-axis guides.

isAreaVisible

Method
Signature
isAreaVisible (seriesIndex: number): boolean

Indicate whether the area is visible for the line series.

Parameters

ParameterTypeDescriptionRequired
seriesIndex

The index of the series.

Returns
boolean

isLineSmoothed

Method
Signature
isLineSmoothed (seriesIndex: number): boolean

Specify whether line segments of the series should be smoothed.

Parameters

ParameterTypeDescriptionRequired
seriesIndex

The index of the series.

Returns
boolean

isMarkerVisible

Method
Signature
isMarkerVisible (seriesIndex: number): boolean

Indicate whether to show or hide the markers/bullets of the line series.

Parameters

ParameterTypeDescriptionRequired
seriesIndex

The index of the series.

Returns
boolean

isNegativeValuesStackedToBaseline

inherited Method
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.

Parameters

ParameterTypeDescriptionRequired
seriesIndex

The index of the series.

Returns
boolean

isSameChartAs

inherited Method
Signature
isSameChartAs (otherModel: ChartModel | undefined): boolean
Inherited from: ChartModelBase

Checks if the current chart model is for the same chart as another chart model.

Parameters

ParameterTypeDescriptionRequired
otherModel

The other chart model to compare to.

Returns
boolean

moveCustomSortValuesInOrderByList

inherited Method
Signature
moveCustomSortValuesInOrderByList (fromIndex: number, toIndex: number): void
Inherited from: SerialChartModel

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.

Parameters

ParameterTypeDescriptionRequired
fromIndex

The index to move the custom sort value from.

toIndex

The index to move the custom sort value to.

Returns
void

moveSeries

inherited Method
Signature
moveSeries (fromIndex: number, toIndex: number): void
Inherited from: SerialChartModel

Moves a series from one index in the series array to another.

Parameters

ParameterTypeDescriptionRequired
fromIndex

Index to move the series from.

toIndex

Index to move the series to.

Returns
void

rebuildSeries

inherited Method
Signature
rebuildSeries (): Promise<void>
Inherited from: SerialChartModel

Rebuilds the series based on the current configuration.

Returns
Promise<void>

recall

inherited Method
Signature
recall (configRevision?: number): ChartConfig | undefined
Inherited from: ChartModelBase

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
ChartConfig | undefined

resetTimeInterval

inherited Method
Signature
resetTimeInterval (): void
Inherited from: ModelWithTemporalBinning

Resets the time interval to default for a temporal line chart.

Returns
void

setAreaColor

Method
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.

Parameters

ParameterTypeDescriptionRequired
color

The color of the filled area.

seriesIndex

The index of the series.

Returns
void

setAreaVisible

Method
Signature
setAreaVisible (visible: boolean, seriesIndex?: number): void

Specify whether the area should be visible for the line series. Note: This method will only work if the series is a line chart series.

Parameters

ParameterTypeDescriptionRequired
visible

true if the line series should show area, false otherwise.

seriesIndex

The index of the series. If omitted, all compatible series will be updated.

Returns
void

setAssignToSecondValueAxis

deprecatedinherited Method
Signature
setAssignToSecondValueAxis (assign: boolean, seriesIndex: number): void
Inherited from: SerialChartModel

Sets whether the series should be assigned to the second value axis.

Parameters

ParameterTypeDescriptionRequired
assign

The value for the setting.

seriesIndex

The index of the series.

Returns
void

setAxisLabelsVisibility

inherited Method
Signature
setAxisLabelsVisibility (isVisible: boolean, axisIndex?: number): void
Inherited from: ModelWithMultiAxes

Sets the visibility of the specified axis labels.

Parameters

ParameterTypeDescriptionRequired
isVisible

The visibility state for the axis labels.

axisIndex

Axis index for the chart: 0 for x-axis, 1 for primary y-axis, and 2 for secondary y-axis. If omitted, all axes will be updated.

Returns
void

setAxisScrollbar

inherited Method
Signature
setAxisScrollbar (scrollbar: WebChartAxisScrollBar, axisIndex: number): void
Inherited from: ModelWithMultiAxes

Sets the scrollbar configuration for zooming and panning along the specified axis.

Parameters

ParameterTypeDescriptionRequired
scrollbar

The scrollbar configuration to set.

axisIndex

Axis index for the chart: 0 for x-axis, 1 for primary y-axis, and 2 for secondary y-axis.

Returns
void
Example
// Sets the scrollbar for the x-axis
chartModel.setAxisScrollbar(
{
visible: true,
width: 20,
color: [70, 174, 211, 255],
gripSize: 32,
margin: 8,
},
0,
);
// Sets the scrollbar for the y-axis
chartModel.setAxisScrollbar(
{
visible: true,
width: 20,
color: [158, 194, 49, 255],
gripSize: 32,
margin: 8,
},
1,
);

setAxisTitleSymbol

inherited Method
Signature
setAxisTitleSymbol (titleSymbol: WebChartTextSymbol | undefined, axisIndex?: number): void
Inherited from: ModelWithMultiAxes

Sets the title text symbol for the specified axis. Contains styling information such as font, color, and symbol style.

Parameters

ParameterTypeDescriptionRequired
titleSymbol

The title text symbol to set.

axisIndex

Axis index for the chart: 0 for x-axis, 1 for primary y-axis, and 2 for secondary y-axis. If omitted, all axes will be updated.

Returns
void

setAxisTitleText

inherited Method
Signature
setAxisTitleText (titleText: string, axisIndex: number): void
Inherited from: ModelWithMultiAxes

Sets the title text for the specified axis.

Parameters

ParameterTypeDescriptionRequired
titleText

The title text for the axis.

axisIndex

Axis index for the chart: 0 for x-axis, 1 for primary y-axis, and 2 for secondary y-axis.

Returns
void

setAxisTitleVisibility

inherited Method
Signature
setAxisTitleVisibility (isVisible: boolean, axisIndex?: number): void
Inherited from: ModelWithMultiAxes

Sets the visibility of the specified axis title.

Parameters

ParameterTypeDescriptionRequired
isVisible

The visibility state for the axis title.

axisIndex

Axis index for the chart: 0 for x-axis, 1 for primary y-axis, and 2 for secondary y-axis. If omitted, all axes will be updated.

Returns
void

setAxisValueFormat

inherited Method
Signature
setAxisValueFormat (axisIndex: number, valueFormat?: CategoryFormatOptions | DateTimeFormatOptions | NumberFormatOptions): void
Inherited from: ModelWithMultiAxes

Sets the value format for the specified axis.

Parameters

ParameterTypeDescriptionRequired
axisIndex

Axis index for the chart: 0 for x-axis, 1 for primary y-axis, and 2 for secondary y-axis.

valueFormat

The value format to set.

Returns
void

setAxisVisibility

inherited Method
Signature
setAxisVisibility (isVisible: boolean, axisIndex: number): void
Inherited from: ModelWithMultiAxes

Sets the visibility of the specified axis.

Parameters

ParameterTypeDescriptionRequired
isVisible

The visibility state for the axis.

axisIndex

Axis index for the chart: 0 for x-axis, 1 for primary y-axis, and 2 for secondary y-axis.

Returns
void

setBuffer

inherited Method
Signature
setBuffer (buffer: boolean, axisIndex?: number): void
Inherited from: ModelWithMultiAxes

Sets the buffer for the specified axis.

  • This setting is only applicable to the axis of type ValueAxis
with setBufferwithout setBuffer
setBuffer truesetBuffer false

Parameters

ParameterTypeDescriptionRequired
buffer

The setting for the buffer.

axisIndex

Axis index for the chart: 0 for x-axis, 1 for primary y-axis, and 2 for secondary y-axis. If omitted, all compatible value axes will be updated.

Returns
void

setDataFilters

inherited Method
Signature
setDataFilters (newDataFilter: WebChartDataFilters | undefined): Promise<void>
Inherited from: SerialChartModel

Sets the data filter for the bar chart.

Parameters

ParameterTypeDescriptionRequired
newDataFilter

The new data filter.

Returns
Promise<void>

setDataLabelsSymbol

inherited Method
Signature
setDataLabelsSymbol (newDataLabelsSymbol: WebChartTextSymbol | undefined, seriesIndex: number): void
Inherited from: WithDataLabelsSymbol

Sets the data labels text symbol for a specific series in the chart config.

Parameters

ParameterTypeDescriptionRequired
newDataLabelsSymbol
seriesIndex
Returns
void
Example
barChartModel.setDataLabelsSymbol(
{
type: "esriTS",
color: [255, 0, 0, 255],
font: {
size: 15,
},
},
0,
);

setDataSortOrder

inherited Method
Signature
setDataSortOrder (newSortOrder: HeatChartDataSortingKinds | SerialChartDataSortingKinds, orderByList?: string[]): void
Inherited from: SerialChartModel
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 descending
  • yAxisAsc / yAxisDesc — order by numeric values ascending or descending
  • customSort — order by an explicit category list (orderByList)

Parameters

ParameterTypeDescriptionRequired
newSortOrder

The new data sort order.

orderByList
string[]

The list of category values to order by when using customSort.

Returns
void

setDataTooltipFontSize

inherited Method
Signature
setDataTooltipFontSize (fontSize: number | undefined, seriesIndex: number): void

Sets the data tooltip font size for a series.

Parameters

ParameterTypeDescriptionRequired
fontSize

The font size to set.

seriesIndex

The index of the series to set the font size for.

Returns
void

setDataTooltipReverseColor

inherited Method
Signature
setDataTooltipReverseColor (reverseColor: boolean, seriesIndex?: number): void
Inherited from: ModelWithTooltips

Sets the setting of the dataTooltipReverseColor property.

Parameters

ParameterTypeDescriptionRequired
reverseColor

Indicator of whether to reverse the color.

seriesIndex

The index of the series to set the reverse color. If omitted, all compatible series will be updated.

Returns
void

setDataTooltipValueFormat

inherited Method
Signature
setDataTooltipValueFormat (seriesIndex: number, valueFormat: NumberFormatOptions | undefined): void

Sets the data tooltip value format for a series.

Parameters

ParameterTypeDescriptionRequired
seriesIndex

The index of the series to set the value format for.

valueFormat

The value format to set.

Returns
void

setDataTooltipVisibility

inherited Method
Signature
setDataTooltipVisibility (visibility: boolean, seriesIndex?: number): void
Inherited from: ModelWithTooltips

Sets the visibility of the data tooltips.

Parameters

ParameterTypeDescriptionRequired
visibility

The visibility of the data tooltips.

seriesIndex

The index of the series to set the visibility. If omitted, all compatible series will be updated.

Returns
void

setDisplayCursorTooltip

inherited Method
Signature
setDisplayCursorTooltip (displayCursorTooltip: boolean, axisIndex?: number): void
Inherited from: ModelWithMultiAxes

Sets the display cursor tooltip setting for the specified axis.

Parameters

ParameterTypeDescriptionRequired
displayCursorTooltip

The display cursor tooltip setting for the axis.

axisIndex

Axis index for the chart: 0 for x-axis, 1 for primary y-axis, and 2 for secondary y-axis. If omitted, all axes will be updated.

Returns
void

setDisplayZeroLine

inherited Method
Signature
setDisplayZeroLine (displayZeroLine: boolean, axisIndex?: number): void
Inherited from: ModelWithMultiAxes

Sets the display zero line setting for the specified axis.

  • This setting is only applicable to the axis of type ValueAxis.

Parameters

ParameterTypeDescriptionRequired
displayZeroLine

The display zero line setting for the axis.

axisIndex

Axis index for the chart: 0 for x-axis, 1 for primary y-axis, and 2 for secondary y-axis. If omitted, all compatible value axes will be updated.

Returns
void

setGridLinesSymbol

inherited Method
Signature
setGridLinesSymbol (linesSymbol: ISimpleLineSymbol | undefined, axisIndices?: number[]): void
Inherited from: ModelWithMultiAxes

Sets the grid lines symbol. Contains styling information such as line width, line style, and line color.

See also

Parameters

ParameterTypeDescriptionRequired
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 omitted
chartModel.setGridLinesSymbol(
{
type: "esriSLS",
style: "esriSLSDashDot",
color: [0, 0, 128, 255],
width: 3,
}
);

setGridLinesSymbol

setGuideAbove

inherited Method
Signature
setGuideAbove (above: boolean, index?: number, orientation?: GuideOrientation): void
Inherited from: ModelWithGuides

Sets whether the guide should be rendered above the other chart elements.

Parameters

ParameterTypeDescriptionRequired
above

New above boolean to set.

index

Default 0. The index of the guide in the list of guides for the given axis orientation.

orientation

Default y. The axis orientation of the guide.

Returns
void

setGuideEnd

inherited Method
Signature
setGuideEnd (end: Date | number | string | null | undefined, index?: number, orientation?: GuideOrientation): void
Inherited from: ModelWithGuides

Sets the end value of a guide.

Parameters

ParameterTypeDescriptionRequired
end

New end value to set.

index

Default 0. The index of the guide in the list of guides for the given axis orientation.

orientation

Default y. The axis orientation of the guide. If it's a gauge, the default is x

Returns
void

setGuideLabelText

inherited Method
Signature
setGuideLabelText (labelText: string, index?: number, orientation?: GuideOrientation): void
Inherited from: ModelWithGuides

Sets the guide label text.

Parameters

ParameterTypeDescriptionRequired
labelText

New label text to set.

index

Default 0. The index of the guide in the list of guides for the given axis orientation.

orientation

Default y. The axis orientation of the guide.

Returns
void

setGuideName

inherited Method
Signature
setGuideName (name: string, index?: number, orientation?: GuideOrientation): void
Inherited from: ModelWithGuides

Sets the name of a guide.

Parameters

ParameterTypeDescriptionRequired
name

New name to set.

index

Default 0. The index of the guide in the list of guides for the given axis orientation.

orientation

Default y. The axis orientation of the guide.

Returns
void

setGuideStart

inherited Method
Signature
setGuideStart (start: Date | number | string | null, index?: number, orientation?: GuideOrientation): void
Inherited from: ModelWithGuides

Sets the start value of a guide.

Parameters

ParameterTypeDescriptionRequired
start

New start value to set.

index

Default 0. The index of the guide in the list of guides for the given axis orientation.

orientation

Default y. The axis orientation of the guide. If it's a gauge, the default is x

Returns
void

setGuideStyle

inherited Method
Signature
setGuideStyle (style: ISimpleFillSymbol | ISimpleLineSymbol, index?: number, orientation?: GuideOrientation): void
Inherited from: ModelWithGuides

Sets the guide style.

Parameters

ParameterTypeDescriptionRequired
style

New style to set.

index

Default 0. The index of the guide in the list of guides for the given axis orientation.

orientation

Default y. The axis orientation of the guide.

Returns
void
Example
chartModel.setGuideStyle(
{
type: "esriSLS",
color: [0, 200, 0, 255],
width: 2,
},
1,
);

setGuideTooltipReverseColor

inherited Method
Signature
setGuideTooltipReverseColor (reverseColor: boolean, index?: number, orientation?: GuideOrientation): void
Inherited from: ModelWithGuides

Sets whether the tooltip text color should be reversed for a guide.

Parameters

ParameterTypeDescriptionRequired
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

inherited Method
Signature
setGuideVisibility (visible: boolean, index?: number, orientation?: GuideOrientation): void
Inherited from: ModelWithGuides

Sets whether a guide is visible.

Parameters

ParameterTypeDescriptionRequired
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 y. The axis orientation of the guide.

Returns
void

setHorizontalAxisLabelsBehavior

inherited Method
Signature
setHorizontalAxisLabelsBehavior (horizontalBehavior: WebChartLabelBehavior): void
Inherited from: ModelWithMultiAxes

Sets the horizontal axis labels behavior for the chart.

  • Default behavior is rotate, except for histogram where the default is hide.
hiderotatestaggerwrap
HideRotateStaggerWrap

Parameters

ParameterTypeDescriptionRequired
horizontalBehavior

The behavior for the horizontal axis labels.

Returns
void

setIntegerOnlyValues

inherited Method
Signature
setIntegerOnlyValues (integerOnlyValues: boolean, axisIndex?: number): void
Inherited from: ModelWithMultiAxes

Sets the integer only values setting for the specified axis.

  • This setting is only applicable to the axis of type ValueAxis.

Parameters

ParameterTypeDescriptionRequired
integerOnlyValues

The boolean value to set for the integer only values setting.

axisIndex

Axis index for the chart: 0 for x-axis, 1 for primary y-axis, and 2 for secondary y-axis. If omitted, all compatible value axes will be updated.

Returns
void

setLineSmoothed

Method
Signature
setLineSmoothed (smoothed: boolean, seriesIndex?: number): void

Specify whether line segments of the series should be smoothed. Note: This method will only work if the series is a line chart series.

Parameters

ParameterTypeDescriptionRequired
smoothed

true if line segment of the series should be smoothed, false otherwise.

seriesIndex

The index of the series. If omitted, all compatible series will be updated.

Returns
void

setLogarithmic

inherited Method
Signature
setLogarithmic (isLogarithmic: boolean, axisIndex: number): void
Inherited from: ModelWithMultiAxes

Sets whether logarithmic scale is enabled for the specified axis.

X-axis (axisIndex: 0)Primary y-axis (axisIndex: 1)Both axes
Logarithmic x-axisLogarithmic primary y-axisLogarithmic x- and primary y-axes

Parameters

ParameterTypeDescriptionRequired
isLogarithmic

Whether to enable logarithmic scale for the specified axis.

axisIndex

Axis index for the chart: 0 for x-axis, 1 for primary y-axis, and 2 for secondary y-axis.

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);

setMarkersVisible

Method
Signature
setMarkersVisible (visible: boolean, seriesIndex?: number): void

Indicate whether to show or hide the markers/bullets of the line series. Note: This method will only work if the series is a line chart series.

Parameters

ParameterTypeDescriptionRequired
visible

true if the markers/bullets of the line series should be shown, false otherwise.

seriesIndex

The index of the series. If omitted, all compatible series will be updated.

Returns
void

setMarkerVisible

deprecated Method
Signature
setMarkerVisible (visible: boolean, seriesIndex: number): void

Indicate whether to show or hide the markers/bullets of the line series. Note: This method will only work if the series is a line chart series.

Parameters

ParameterTypeDescriptionRequired
visible

true if the markers/bullets of the line series should be shown, false otherwise.

seriesIndex

The index of the series.

Returns
void

setMaxBound

inherited Method
Signature
setMaxBound (newMaxBound: number | null, axisIndex: number): void
Inherited from: ModelWithMultiAxes

Sets the maximum bound for the specified axis.

Parameters

ParameterTypeDescriptionRequired
newMaxBound

The value to set as the maximum bound.

axisIndex

Axis index for the chart: 0 for x-axis, 1 for primary y-axis, and 2 for secondary y-axis.

Returns
void

setMinBound

inherited Method
Signature
setMinBound (newMinBound: number | null, axisIndex: number): void
Inherited from: ModelWithMultiAxes

Sets the minimum bound for the specified axis.

Parameters

ParameterTypeDescriptionRequired
newMinBound

The value to set as the minimum bound.

axisIndex

Axis index for the chart: 0 for x-axis, 1 for primary y-axis, and 2 for secondary y-axis.

Returns
void

setNegativeValuesStackedToBaseline

inherited Method
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.

Parameters

ParameterTypeDescriptionRequired
stackNegativeValuesToBaseline

true if negative values should be stacked on the base line, false otherwise.

seriesIndex

The index of the series.

Returns
void

setOrderOfSeries

inherited Method
Signature
setOrderOfSeries (newOrder: string[]): void
Inherited from: SerialChartModel

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.

Parameters

ParameterTypeDescriptionRequired
newOrder
string[]

The new order of the series array.

Returns
void

setSeriesColor

inherited Method
Signature
setSeriesColor (newColor: Color | undefined, seriesIndex: number): void
Inherited from: SerialChartModel

Sets the color of the series based on the series index.

Parameters

ParameterTypeDescriptionRequired
newColor

The new color for the series.

seriesIndex

The index of the series.

Returns
void

setSeriesHideOversizedSideBySideLabels

Method
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.

Parameters

ParameterTypeDescriptionRequired
hide

The value for hiding oversized labels.

seriesIndex

The index of the series. If omitted, all compatible series will be updated.

Returns
void

setSeriesHideOversizedStackedLabels

Method
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.

Parameters

ParameterTypeDescriptionRequired
hide

The value for hiding oversized stacked labels.

seriesIndex

The index of the series. If omitted, all compatible series will be updated.

Returns
void

setSeriesLineStyle

Method
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

ParameterTypeDescriptionRequired
newStyle

The new style for the series.

seriesIndex

The index of the series. If omitted, all compatible series will be updated.

Returns
void

setSeriesLineWidth

Method
Signature
setSeriesLineWidth (newWidth: number | undefined, seriesIndex?: number): void

Sets the line width of the series based on the series index.

Note: This method will only work if the series is a line chart series.

Parameters

ParameterTypeDescriptionRequired
newWidth

The new width for the series.

seriesIndex

The index of the series. If omitted, all compatible series will be updated.

Returns
void

setSeriesMarkerColor

Method
Signature
setSeriesMarkerColor (newColor: Color | undefined, seriesIndex: number): void

Sets the marker color of the series based on the series index. Note: This method will only work if the series is a line chart series.

Parameters

ParameterTypeDescriptionRequired
newColor

The new color for the series.

seriesIndex

The index of the series.

Returns
void

setSeriesMarkerSize

Method
Signature
setSeriesMarkerSize (newSize: number | undefined, seriesIndex?: number): void

Sets the marker size of the series based on the series index. Note: This method will only work if the series is a line chart series.

Parameters

ParameterTypeDescriptionRequired
newSize

The new size for the series.

seriesIndex

The index of the series. If omitted, all compatible series will be updated.

Returns
void

setSeriesMarkerStyle

Method
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

ParameterTypeDescriptionRequired
newStyle

The new style for the series.

seriesIndex

The index of the series. If omitted, all compatible series will be updated.

Returns
void

setSeriesName

inherited Method
Signature
setSeriesName (name: string, seriesIndex: number): void
Inherited from: SerialChartModel

Sets name of the series based on the series index.

Parameters

ParameterTypeDescriptionRequired
name

The name for the series.

seriesIndex

The index of the series.

Returns
void

setSeriesToSecondaryYAxis

inherited Method
Signature
setSeriesToSecondaryYAxis (assign: boolean, seriesIndex: number): void
Inherited from: SerialChartModel

Sets whether the series should be assigned to the secondary y-axis.

Parameters

ParameterTypeDescriptionRequired
assign

The value for the setting.

seriesIndex

The index of the series.

Returns
void
Example
chartModel.setSeriesToSecondaryYAxis(true, 0); // Assigns the first series to the secondary y-axis
chartModel.setSeriesToSecondaryYAxis(false, 1); // Removes the second series from the secondary y-axis

setSeriesType

Method
Signature
setSeriesType (seriesIndex: number, seriesType: WebChartTypes): void

Changes the chart series type at the specified index from bar to line and vice-versa.

Parameters

ParameterTypeDescriptionRequired
seriesIndex

The index of the series to update.

seriesType

The new chart series type to apply.

Returns
void

setSeriesVisibility

inherited Method
Signature
setSeriesVisibility (props: LegendItemVisibility): void
Inherited from: WithSeriesVisibility

Sets the visibility of a series.

Parameters

ParameterTypeDescriptionRequired
props

Visibility options for the series.

Returns
void

setSortOrder

deprecatedinherited Method
Signature
setSortOrder (newSortOrder: HeatChartDataSortingKinds | SerialChartDataSortingKinds, orderByList?: string[]): void
Inherited from: SerialChartModel

Sets the data sort order for the chart.

Parameters

ParameterTypeDescriptionRequired
newSortOrder

The new data sort order.

orderByList
string[]

The list of category values to order by when using customSort.

Returns
void

setTickSpacing

inherited Method
Signature
setTickSpacing (tickSpacing: number, axisIndex: number): void
Inherited from: ModelWithMultiAxes

Sets the tick spacing for the specified axis.

Parameters

ParameterTypeDescriptionRequired
tickSpacing

The value to set for the tick spacing.

axisIndex

Axis index for the chart: 0 for x-axis, 1 for primary y-axis, and 2 for secondary y-axis.

Returns
void

setTooltipReverseColor

deprecatedinherited Method
Signature
setTooltipReverseColor (reverseColor: boolean, index?: number, orientation?: GuideOrientation): void
Inherited from: ModelWithGuides

Sets whether the tooltip text color should be reversed for a guide.

Parameters

ParameterTypeDescriptionRequired
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

Method
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

ParameterTypeDescriptionRequired
params
ModelParams<ChartConfig<typeof ModelTypes.ComboBarLineChart>>
Returns
Promise<void>

setVerticalAxisLabelsBehavior

inherited Method
Signature
setVerticalAxisLabelsBehavior (verticalBehavior: WebChartLabelBehavior): void
Inherited from: ModelWithMultiAxes

Sets the vertical axis labels behavior for the chart.

hidewrap
HideWrap

Parameters

ParameterTypeDescriptionRequired
verticalBehavior

The behavior for the vertical axis labels.

Returns
void

update

inherited Method
Signature
update (): Promise<void>
Inherited from: ChartModelBase

Can be awaited to allow any pending async updates to complete.

Returns
Promise<void>

updateSeriesFromLayerFilter

deprecatedinherited Method
Signature
updateSeriesFromLayerFilter (): void
Inherited from: SerialChartModel

Updates the series based on the layer filter.

Returns
void