Skip to content
ESM
import { WebChartCurrentVersion } from "@arcgis/charts-components/spec/web-chart.js";

Variables

WebChartCurrentVersion

Variable

Version of the current specification.

Type
"25.0.0"

Type definitions

ValueConversion

Type definition

Stores information regarding a numeric conversion.

factor

Property
Type
number | undefined

A numeric value multiplying the value to convert.

offset

Property
Type
number | undefined

A numeric offset to apply to the value to convert.

WebChartAxisScrollBar

Type definition

Describes the properties of an axis scrollbar.

visible

Property
Type
boolean | undefined

Scrollbar visibility.

Default value
false

width

Property
Type
number | undefined

Scrollbar width in pixels.

color

Property
Type
Color | undefined

Scrollbar color.

gripSize

Property
Type
number | undefined

Grip size in pixels.

margin

Property
Type
number | undefined

Margin between the scrollbar and the series container in pixels.

WebChartTextSymbol

Type definition

Represents a text symbol.

Supertypes
Omit<ITextSymbol‚ "angle" | "style" | "xoffset" | "yoffset">

xoffset

Property
Type
number | string | undefined

Horizontal offset. Can be a number for a fixed value in pixels, or a string such as 25% for a value relative to the label's container width.

yoffset

Property
Type
number | string | undefined

Vertical offset. Can be a number for a fixed value in pixels, or a string such as 25% for a value relative to the label's container height.

angle

Property
Type
number | undefined

Rotation angle of the label.

style

Property
Type
string | undefined

Label style.

WebChartText

Type definition

Stores information on how some text is rendered on the chart and whether it is visible or not.

type

Property
Type
typeof WebChartTypes.Text

A unique string identifier for the ChartText object. This value is chartText.

visible

Property
Type
boolean | undefined

Determines the visibility of the content.

Default value
true

content

Property
Type
WebChartTextSymbol

Contains the styling information and text content.

WebChartCursorCrosshair

Type definition

JSON representation of the cursor's crosshair for a chart.

type

Property
Type
typeof WebChartTypes.CursorCrosshair

Represents a unique string identifier for the chart cursor's crosshair.

style

Property
Type
ISimpleLineSymbol | undefined

Contains styling information on how the chart cursor's crosshair should be rendered.

verticalLineVisible

Property
Type
boolean | undefined

Indicates whether the vertical crosshair line should be displayed.

Default value
false

horizontalLineVisible

Property
Type
boolean | undefined

Indicates whether the horizontal crosshair line should be displayed.

Default value
false

WebChartLegend

Type definition

JSON representation of the chart's legend.

type

Property
Type
typeof WebChartTypes.Legend

A unique string identifier for the ChartLegend object. This value is chartLegend.

visible

Property
Type
boolean | undefined

Determines the visibility of the content.

Default value
true

title

Property
Type
WebChartText | undefined

Contains styling information on how the title of the legend box should be rendered.

body

Property
Type
WebChartTextSymbol | undefined

Contains styling information on how legend body (excluding the title) should be rendered. Will use default styling if not provided.

position

Property
Type
WebChartLegendPositions | undefined

Positions the legends at "right", "left", "top", or "bottom" of the chart.

Default value
`right`

maxHeight

Property
Type
number | null | undefined

Legend's maximum height. If not set the legend will occupy the same height as the series container.

Default value
null

roundMarkers

Property
Type
boolean | undefined

Allows the legend markers to be displayed as circles.

  • false or undefined: rounded rectangles
  • true: circles
Default value
false

WebChartNullCategory

Type definition

text

Property
Type
string | undefined

Specifies the text to use for the null category. If none is provided, the default null text will be used.

symbol

Property
Type
ISimpleFillSymbol | undefined

Contains styling information on how the overlay should be rendered. If not provided a default style is applied.

Default value
1 - symbol.outline.width

WebChartPieChartLegend

Type definition

Specific legend for pie charts

Supertypes
WebChartLegend

displayCategory

Property
Type
boolean | undefined

Indicates whether the category associated to a slice is to be displayed in the legend.

Default value
true

displayNumericValue

Property
Type
boolean | undefined

Indicates whether the numeric value associated to a slice is to be displayed in the legend. If both displayNumericValue and displayPercentage are true on a same label, they will be displayed as percentage (value)

Default value
false

displayPercentage

Property
Type
boolean | undefined

Indicates whether the percentage to a slice is to be displayed in the legend. If both displayNumericValue and displayPercentage are true on a same label, they will be displayed as percentage (value)

Default value
false

labelMaxWidth

Property
Type
number | undefined

Maximum width in pixels of the label displaying the slice name. If the label is larger than the maximum width, it will automatically wrap.

Default value
200

valueLabelMaxWidth

Property
Type
number | undefined

Maximum width in pixels of the value label displaying the slice value. If the label is larger than the maximum width, it will automatically wrap.

Default value
200

WebChartOverlay

Type definition

JSON representation of the chart's overlays such as the trendline in scatterplot, and the median overlay in histogram.

type

Property
Type
typeof WebChartTypes.Overlay

A unique string identifier for the ChartOverlay object. This value is chartOverlay.

created

Property
Type
boolean | undefined

Determines whether the overlay is created under the hood. It may or may not be visible.

Default value
false

visible

Property
Type
boolean | undefined

Determines the visibility of the content.

Default value
true

symbol

Property
Type
ISimpleLineSymbol | undefined

Contains styling information on how the overlay should be rendered. If not provided a default style is applied.

NumberFormatOptions

Type definition

Defines how the numerical(value) axis data should be formatted.

type

Property
Type
typeof WebChartTypes.NumberAxisFormat

Represents a unique string identifier for the NumberFormatOptions object. For the NumberFormatOptions object, it is number. It can help to differentiate numerical (value) axis from other types of axes such as date-time axis and category axis.

intlOptions

Property
Type
Intl.NumberFormatOptions

Represents the JS native Intl.NumberFormatOptions, which is based on CLDR specifications.

WebChartDateTimeUnitFormatOptions

Type definition

Interface used by the axis valueFormat property to describe how to format specific date and time units when displayed on the axis.

year

Property
Type
Intl.DateTimeFormatOptions | undefined

month

Property
Type
Intl.DateTimeFormatOptions | undefined

day

Property
Type
Intl.DateTimeFormatOptions | undefined

hour

Property
Type
Intl.DateTimeFormatOptions | undefined

minute

Property
Type
Intl.DateTimeFormatOptions | undefined

second

Property
Type
Intl.DateTimeFormatOptions | undefined
Example
"year": { year: "numeric" }
"month": { month: "numeric" }
"day": { day: "2-digit" }
"hour": { day: "numeric" }
"minute": { minute: "numeric" }
"second": { second: "numeric" }

DateTimeFormatOptions

Type definition

Defines how the DateTime axis data should be formatted.

type

Property
Type
typeof WebChartTypes.DateAxisFormat

Represents a unique string identifier for the NumberFormatOptions object. For the NumberFormatOptions object, it is date. It can help to differentiate date-time axis from other types of axes such as numeric (value) axis and category axis.

intlOptions

Property
Type
Intl.DateTimeFormatOptions

Represent the JS native Intl.DateTimeFormatOptions, which is based on CLDR specifications.

formatPerDateTimeUnit

Property
Type
WebChartDateTimeUnitFormatOptions | undefined

Represents how to format specific date and time units when displayed on the axis, independently from the intlOptions.

CategoryFormatOptions

Type definition

Defines how the category axis data (categories) should be formatted.

type

Property
Type
typeof WebChartTypes.CategoryAxisFormat

Represents a unique string identifier for the CategoryFormatOptions object. For the CategoryFormatOptions object, it is category. It can help to differentiate category axis from other types of axes such as date-time axis and numeric (value) axis.

characterLimit

Property
Type
number | null | undefined

Represents a positive integer which represents the limit on the number of characters to be displayed for all the category strings. The truncated string are appended with .... If property is not present or null, no truncation is done.

WebChartGuide

Type definition

JSON representation of the chart's guide object. Can be used to represent both line and fill guides.

type

Property
Type
typeof WebChartTypes.Guide

Represents a unique string identifier for the Guide object. For the Guide class, it is chartGuide.

start

Property
Type
Date | number | string | null

Determines the value where the guide should begin.

end

Property
Type
Date | number | string | null | undefined

Determines the value where the guide should end. If it is not specified, a line guide is used, otherwise a fill/rectangular guide is used.

style

Property
Type
ISimpleFillSymbol | ISimpleLineSymbol

Determines how the guide should be rendered.

name

Property
Type
string

A unique string identifier which is used to refer to a particular guide. It is displayed in the charts config UI to differentiate between different guides.

label

Property
Type
WebChartTextSymbol | undefined

Defines a text label for the given guide. It is displayed on the chart next to the concerned guide and is styled using esriTS format.

visible

Property
Type
boolean | undefined

Determines the visibility of the content.

Default value
true

above

Property
Type
boolean | undefined

Determines whether the guide should be rendered on top of (overlapping) the series or under the series.

Default value
false

tooltipReverseColor

Property
Type
boolean | undefined

Indicates whether to apply the hovered element's color to the guide's tooltip background (false) or its outline (true).

Default value
false

WebChartAxis

Type definition

JSON representation of the chart's axis object

type

Property
Type
typeof WebChartTypes.Axis

Represents a unique string identifier for the WebChartAxis object. For ChartAxis object, it is chartAxis.

visible

Property
Type
boolean | undefined

Determines the visibility of the content.

Default value
true

isLogarithmic

Property
Type
boolean | undefined

Specifies whether the axis has a logarithmic scale or not.

Default value
false

title

Property
Type
WebChartText | undefined

Contains styling information on how the title of the axis should be rendered

valueFormat

Property
Type
CategoryFormatOptions | DateTimeFormatOptions | NumberFormatOptions

Specifies how numerical/categorical/date-time values should be formatted.

minimum

Property
Type
number | null | undefined

The minimum value which the axis should represent, when it is not defined or null, then the minimum value for the corresponding axis is automatically calculated.

maximum

Property
Type
number | null | undefined

The maximum value which the axis should represent, when it is not defined or null, then the maximum value for the corresponding axis is automatically calculated.

grid

Property
Type
ISimpleLineSymbol | undefined

Dictates how the grid lines associated with a particular axis should be rendered.

guides

Property
Type
WebChartGuide[] | undefined

Represent an array of guides that should be rendered onto the axis.

lineSymbol

Property
Type
ISimpleLineSymbol | undefined

Contains styling information on how the axis line should be rendered. If not provided a default style is applied.

labels

Property
Type
WebChartText

Contains styling information on how the axis labels should be rendered.

scrollbar

Property
Type
WebChartAxisScrollBar | undefined

Represents the axis scrollbar style and visibility.

displayZeroLine

Property
Type
boolean | undefined

Represents an option to hide/un-hide the zero line on value axis.

Default value
false

integerOnlyValues

Property
Type
boolean | undefined

Represents an option to show integer-only values for a value axis

Default value
false

displayCursorTooltip

Property
Type
boolean | undefined

Specifies whether cursor tooltip should be displayed.

Default value
false

buffer

Property
Type
boolean | undefined

Allows setting a buffer to a value axis to provide some space around the series.

Default value
false

tickSpacing

Property
Type
number | undefined

The desired minimum distance between two adjacent axis ticks. The actual distance may fluctuate depending on the chart's size. When not provided a default value is assigned according to the axis type and axis labels behavior.

Note: This property is not applicable to gauge charts.

dateBaseInterval

Property
Type
TimeIntervalInfo | undefined

Specifies the base interval on a date axis. Will be ignored on the other axis types. It will be overridden by the properties from the series binTemporalData when provided.

WebChartGaugeAxisTick

Type definition

JSON representation of the gauge axis ticks. Currently only used by WebChartGaugeAxis.

type

Property
Type
typeof WebChartTypes.GaugeAxisTick

Represents a unique string identifier for the GaugeAxisTick object. For WebChartGaugeAxisTick object, it is gaugeAxisTick.

visible

Property
Type
boolean | undefined

Determines the visibility of the axis ticks.

Default value
true

WebChartNeedle

Type definition

JSON representation of a gauge needle.

type

Property
Type
typeof WebChartTypes.GaugeNeedle

Represents a unique string identifier for the ChartNeedle object. For WebChartNeedle object, it is gaugeNeedle.

visible

Property
Type
boolean | undefined

Hides or shows the needle.

Default value
true

symbol

Property
Type
ISimpleFillSymbol | undefined

Contains styling information on how the needle should be rendered.

startWidth

Property
Type
number | null | undefined

Represents the needle's thickness at the bottom (chart's center) in pixels.

Default value
10

endWidth

Property
Type
number | null | undefined

Represents the needle's thickness at the top in pixels.

Default value
1

innerRadius

Property
Type
number | null | undefined

Represents the size of the hole in the middle of the chart. Can be visualized when guides are displayed.

Default value
25

displayPin

Property
Type
boolean | undefined

Hides or shows the needle's pin (centroid circle).

Default value
false

WebChartGaugeAxis

Type definition

JSON representation of the gauge chart's axis object. Inherits from the WebChartAxis properties.

Supertypes
WebChartAxis

innerLabel

Property
Type
WebChartText | undefined

Specifies how the axis' inner label needs to be displayed.

needle

Property
Type
WebChartNeedle | undefined

Specifies how the axis' needle needs to be displayed.

ticks

Property
Type
WebChartGaugeAxisTick | undefined

Specifies how the axis' ticks need to be displayed.

labelsIncrement

Property
Type
number | undefined

If a label has a value being a multiple of that property, it will be displayed. Otherwise it will be hidden.

If the property is undefined or 0, the chart will be displayed with 6 axis labels distributed evenly along the axis min and max.

If the property has a value that results in more than a set limit of axis labels (25 as defined in ChartDefaults.gauge.maximumNumberOfLabelIntervals) this property value will be ignored and the chart will be displayed with only axis min/max with 4 ticks in between.

Default value
undefined

onlyShowFirstAndLastLabels

Property
Type
boolean | undefined

Specifies if only the first and last labels need to be displayed. If set to true all the other labels will be hidden. Their visibility still depends on the axis labels visibility (WebChartAxis.labels.visible).

Default value
false

minimumValueConversion

Property
Type
ValueConversion | undefined

Defines how to convert the axis minimum.

maximumValueConversion

Property
Type
ValueConversion | undefined

Defines how to convert the axis maximum.

minimumFromField

Property
Type
IStatisticDefinition | string | undefined

With a gauge by feature:

  • minimumFromField is expected to be a field name. The value from that field for the given feature is mapped to the axis minimum value.

With a statistic gauge:

  • If minimumFromField is set to a field name (string), the minimum from that field is mapped to the axis minimum value.
  • If it is set to an IStatisticDefinition the statistic (min, max, avg...) from the given field is mapped to the axis minimum value.

When minimumFromField is not provided or when it leads to an invalid value, the minimum value from the axis config, if provided, or the default value of 0, in that order, will be used.

maximumFromField

Property
Type
IStatisticDefinition | string | undefined

With a gauge by feature:

  • maximumFromField is expected to be a field name. The value from that field for the given feature is mapped to the axis maximum value.

With a statistic gauge:

  • If maximumFromField is set to a field name (string), the maximum from that field is mapped to the axis maximum value.
  • If it is set to an IStatisticDefinition the statistic (min, max, avg...) from the given field is mapped to the axis maximum value.

When maximumFromField is not provided or when it leads to an invalid value, the maximum value from the axis config, if provided, or the default value of 0, in that order, will be used.

WebChartRadarChartAxis

Type definition

JSON representation of the radar chart's axis object.

Supertypes
WebChartAxis

labelsOrientation

Property
Type
WebChartRadarChartAxisLabelsOrientation | undefined

Defines the labels orientation.

Default value
WebChartRadarChartAxisLabelsOrientation.Circular

WebChartQuery

Type definition

Chart's query object.

outFields

Property
Type
string[] | undefined

Attribute fields to include in the FeatureSet. Will have an effect on chart with no aggregation.

where

Property
Type
string | undefined

Acts as a filter on the base data for attribute-based filtering, expect for bar/line charts for which is is used to handle the split-by field values.

groupByFieldsForStatistics

Property
Type
string[] | undefined

An array of fields which determine how the base data is grouped. Only one groupBy field is supported,

outStatistics

Property
Type
IStatisticDefinition[] | undefined

Represents an array of statistics definitions which dictate how a particular field should be aggregated.

orderByFields

Property
Type
string[] | undefined

Represents the sorting order of the output result.

It's recommended to use the orderByFields property of the chart's orderOptions object instead of this one. If both are used, the orderByFields property of the chart's orderOptions object will take precedence.

The format of any entry in this array is field_name sorting_order. When sorting_order is not defined, it is assumed to be ascending.

Example

["STATE_NAME DESC", "CITY_NAME ASC", "CITY_NAME"]

gdbVersion

Property
Type
string | undefined

Specifies the geodatabase version to display for feature service queries.

geometry

Property
Type
IEnvelope | IExtent | IPoint | IPolygon | IPolygonWithCurves | IPolyline | undefined

The geometry to apply to the spatial filter. A buffer can be applied to it by setting the properties distance and units.

spatialRelationship

Property
Type
"contains" | "crosses" | "disjoint" | "envelope-intersects" | "index-intersects" | "intersects" | "overlaps" | "relation" | "touches" | "within" | undefined

For spatial filters, this parameter defines the spatial relationship to filter features in the layer view against the filter geometry.

distance

Property
Type
number | undefined

Specifies a search distance for the geometry. To be associated with the units property. For compatible layers only.

units

Property
Type
RESTUnits | undefined

The unit for calculating the buffer distance when distance and geometry are provided. If not specified, the unit is derived from the geometry spatial reference.

timeExtent

Property
Type
[number, number] | undefined

A time extent [timestamp, timestamp] for a temporal query against time-aware layers.

start

Property
Type
number | undefined

The zero-based index indicating where to begin retrieving features.

num

Property
Type
number | undefined

The number of features to retrieve.

returnDistinctValues

Property
Type
boolean | undefined

If true then the query returns distinct values based on the field(s) specified in outFields. Available for count-based aggregations only.

Default value
false

fetchNullValues

Property
Type
boolean | undefined

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

Default value
false

objectIds

Property
Type
(number | string)[] | undefined

An array of objectIds or uniqueIds of the features to be filtered.

WebChartSeriesQuery

Type definition

Subset of the WebChartQuery, used at the series level.

Note: The former orderByFields property is replaced by the orderOptions property of WebChart.

Supertypes
Omit<WebChartQuery‚ "distance" | "gdbVersion" | "geometry" | "num" | "objectIds" | "orderByFields" | "spatialRelationship" | "start" | "timeExtent" | "units">

WebChartDataFilters

Type definition

JSON representation of filters applied to the data.

Supertypes
Pick<WebChartQuery‚ "distance" | "gdbVersion" | "geometry" | "objectIds" | "spatialRelationship" | "timeExtent" | "units" | "where">

WebChartSeries

Type definition

JSON representation of the chart's series object. All other series extends this interface.

type

Property
Type
string

id

Property
Type
string

A unique string used to differentiate the series on a chart.

visible

Property
Type
boolean | undefined

Hides or shows the series. If the series is has visible set to false, the corresponding legend is grayed out in the legend box.

Default value
true

dataTooltipVisible

Property
Type
boolean | undefined

Hides or shows data tooltips. Note: Not applicable to gauge.

Default value
true

dataTooltipReverseColor

Property
Type
boolean | undefined

Indicates whether to apply the hovered element's color to the background (false) or the outline (true). Note: Not applicable to gauge.

Default value
false

dataTooltipValueFormat

Property
Type
NumberFormatOptions | undefined

Defines how to render numeric values in tooltips.

dataTooltipPercentFormat

Property
Type
NumberFormatOptions | undefined

Defines how to render percent values in tooltips. Used for stacked 100% bar and line charts, as well as pie charts.

dataTooltipDateFormat

Property
Type
DateTimeFormatOptions | undefined

Defines how to render dates in tooltips. Used for bar and line charts using a date x-axis with no time binning.

name

Property
Type
string

Specifies the name of the series. It would be reflected in the chart's legend.

query

Property
Type
WebChartSeriesQuery | undefined

Specifies a query object associated with a particular series containing information on what data to fetch for that series.

x

Property
Type
string

Specifies which field represents the x-coordinates of this series. Empty string or one with just white spaces is not allowed. At least 1 or more word characters (a-z, A-Z, _) is needed.

dataLabels

Property
Type
WebChartText | undefined

Specifies how the data labels should be rendered.

assignToSecondValueAxis

Property
Type
boolean | undefined

Specifies whether the series should be assigned to the second value axis, when the axes property defines it. Supported by bar and line series.

Default value
false

WebChartCalendarDatePartsBinning

Type definition

type

Property
Type
typeof WebChartTypes.CalendarDateParts

Represents a unique string identifier for the CalendarDatePartsBinning object. For CalendarDatePartsBinning object, it is calendarDateParts.

unit

Property
Type
WebChartCalendarDatePartsUnits

Represents the unit to use to bin the data.

WebChartTemporalBinning

Type definition

Describes the properties available for a temporal binning for bar charts and line charts.

unit

Property
Type
WebChartTemporalBinningUnits | undefined

The unit of time to use to bin the temporal data.

Current limitation: the "quarters" unit is only supported if the provided layer supports the queryBins operation.

size

Property
Type
number | undefined

The span of time that will be binned or aggregated together. Works in coordination with unit.

timeAggregationType

Property
Type
WebChartTimeAggregationTypes | undefined

The time interval alignment type. Valid options include equalIntervalsFromStartTime and equalIntervalsFromEndTime.

When specific the binning will start at the first or last date of the dataset.

Default value
"equalIntervalsFromStartTime"

WebChartTemporalSeries

Type definition

Describes the properties related to a temporal series.

binTemporalData

Property
Type
boolean | undefined

Whether to use the time properties to bin the temporal data.

false - the binCount and unit properties can be used to set the date axis base interval.

Default value
true

temporalBinning

Property
Type
WebChartTemporalBinning | undefined

Describes how to bin the temporal data.

WebChartBarChartSeries

Type definition

Bar chart shows the categorical distribution of String or DateTime data.

type

Property
Type
typeof WebChartTypes.BarSeries

Represents a unique string identifier for the BarChartSeries object. For BarSeries object, it is barSeries.

y

Property
Type
string

Specifies which field represents the y-coordinates of this series. Empty string or one with just white spaces is not allowed. At least 1 or more word characters (a-z, A-Z, _) are needed.

fillSymbol

Property
Type
ISimpleFillSymbol | undefined

Contains styling information on how the columns/bars should be rendered.

hideOversizedStackedLabels

Property
Type
boolean | undefined

true or undefined - the labels displayed within a small stacked column are hidden to avoid cluttering. false - all the data labels are displayed.

Default value
true

hideOversizedSideBySideLabels

Property
Type
boolean | undefined

When true, the labels displayed within a small column for sideBySide bar series are hidden to avoid cluttering. When false or undefined (default), all the data labels are displayed.

Default value
false

nullCategory

Property
Type
WebChartNullCategory | undefined

Specifies how to display the category with null value. Setting this property will ensure that the item with no data is displayed on the chart with the specified text and color.

HistogramOverlays

Type definition

Object containing histogram overlays.

type

Property
Type
typeof WebChartTypes.Overlays

Represents a unique string identifier for the HistogramOverlays object. For HistogramOverlays object, it is chartOverlays.

mean

Property
Type
WebChartOverlay | undefined

Specifies the mean overlay for histogram.

If not provided, the mean overlay is not displayed.

median

Property
Type
WebChartOverlay | undefined

Specifies the median overlay for histogram.

If not provided, the median overlay is not displayed.

standardDeviation

Property
Type
WebChartOverlay | undefined

Specifies the standard deviation overlay for histogram.

If not provided, the standard deviation overlay is not displayed.

comparisonDistribution

Property
Type
WebChartOverlay | undefined

Specifies the comparison distribution overlay for histogram.

If not provided, the comparison distribution overlay is not displayed.

WebChartHistogramSeries

Type definition

Histogram shows the frequency distribution of a numerical field.

Supertypes
WebChartSeries

type

Property
Type
typeof WebChartTypes.HistogramSeries

Represents a unique string identifier for the HistogramSeries object. For HistogramSeries object, it is histogramSeries.

binCount

Property
Type
number | null | undefined

Bin count must be a positive integer.

Default value
32

overlays

Property
Type
HistogramOverlays | undefined

Specifies the chart overlays. Histogram supports 4 overlays: mean, median, standardDeviation and comparisonDistribution. The overlays won't show if the property is not defined.

dataTransformationType

Property
Type
WebChartDataTransformations | undefined

Specifies how the data should be transformed (e.g. square root, log, etc.) before binning.

fillSymbol

Property
Type
ISimpleFillSymbol | undefined

Contains styling information on how the columns should be rendered.

ScatterplotOverlays

Type definition

Object containing scatterplot overlays.

type

Property
Type
typeof WebChartTypes.Overlays

Represents a unique string identifier for the ScatterplotOverlays object. For the ScatterplotOverlays object, it is chartOverlays.

trendLine

Property
Type
WebChartOverlay | undefined

Specifies the trend line overlay for scatterplot.

The trend line won't show if the property is not defined.

SizePolicy

Type definition

type

Property
Type
typeof WebChartTypes.SizePolicy

Represents a unique string identifier for the sizePolicy object. For the sizePolicy object, it is sizeScale.

scaleType

Property
Type
SizePolicyScaleTypes | undefined

The type of scale to apply to the markers (logarithmic or linear).

Default value
SizePolicyScaleTypes.Linear

field

Property
Type
string

The field which determines the markers size.

minSize

Property
Type
number | undefined

The minimum marker size.

Default value
5

maxSize

Property
Type
number | undefined

The maximum marker size.

Default value
30

WebChartScatterplotSeries

Type definition

Scatterplot shows the relationship between two numerical fields.

Supertypes
WebChartSeries

type

Property
Type
typeof WebChartTypes.ScatterSeries

Represents a unique string identifier for the ScatterSeries object. For the ScatterSeries object, it is scatterSeries.

y

Property
Type
string

Empty string or one with just white spaces is not allowed. At least 1 or more word characters (a-z, A-Z, _) are needed.

markerSymbol

Property
Type
ISimpleMarkerSymbol | undefined

Specifies how each data point in the scatterplot should be rendered.

overlays

Property
Type
ScatterplotOverlays | undefined

Specifies all the chart overlays. The scatterplot implements only 1 overlay, trendLine. The overlays won't show if the property is not defined.

sizePolicy

Property
Type
SizePolicy | undefined

Specifies rules to use the scatterplot as bubble plot, by changing dynamically the markers size according to a specific field value.

additionalTooltipFields

Property
Type
string[] | undefined

Specifies the additional numeric fields in the tooltip.

WebChartPieChartTick

Type definition

JSON representation of the pie ticks.

type

Property
Type
typeof WebChartTypes.PieTick

Represents a unique string identifier for the WebChartPieChartTick object. For the WebChartPieChartTick object, it is pieTick.

visible

Property
Type
boolean | undefined

Determines the visibility of the tick.

Assigning the true value will only be considered when the data labels are visible (series.dataLabels.visible) and when the data label associated to the tick is outside of the chart (series.dataLabelsOffset > 0).

lineSymbol

Property
Type
ISimpleLineSymbol | undefined

Contains styling information on how the pie chart ticks should be rendered.

WebChartPieChartSlice

Type definition

JSON representation of the pie slices

sliceId

readonly Property
Type
string

A unique string used identify the slice of a pie chart.

originalLabel

readonly Property
Type
Date | number | string | null | undefined

The slice's original label.

label

Property
Type
string | undefined

Custom label for the slice.

For grouped slice, the default value is Other. For regular slice, it will be either the category or field name.

fillSymbol

Property
Type
ISimpleFillSymbol | undefined

Contains styling information on how the slice should be rendered. If not provided, the slice will be styled with default values.

WebChartPieChartGroupSlice

Type definition

JSON representation of the pie grouped slice.

percentageThreshold

Property
Type
number

Slices that have a percent value equal or lesser to this threshold are grouped into a unique slice.

dataLabels

Property
Type
WebChartText | undefined

Specifies how the grouped slice data labels should be rendered.

If the property is not set the series.dataLabels will be used instead.

WebChartPieChartSeries

Type definition

JSON representation of the pie chart series

Supertypes
WebChartSeries

type

Property
Type
typeof WebChartTypes.PieSeries

Represents a unique string identifier for the WebChartPieChartSeries object. For the WebChartPieChartSeries object, it is pieSeries.

y

Property
Type
string

Specifies which field represents the y-coordinates of this series. Empty string or one with just white spaces is not allowed. At least 1 or more word characters (a-z, A-Z, _) are needed.

innerRadius

Property
Type
number | null | undefined

Represents the size of the hole in middle of the chart. The number is used as a percentage rather than a fixed value.

Default value
50

startAngle

Property
Type
number | null | undefined
Default value
-90

endAngle

Property
Type
number | null | undefined
Default value
270

fillSymbol

Property
Type
ISimpleFillSymbol | undefined

Contains styling information on how the slices should be rendered.

displayCategoryOnDataLabel

Property
Type
boolean | undefined

Indicates whether the category associated to a slice is to be displayed on its data label. This property will be ignored if the chart options dataLabelFormatter is provided.

Default value
true

displayNumericValueOnDataLabel

Property
Type
boolean | undefined

Indicates whether the numeric value associated to a slice is to be displayed on its data label.

If both displayNumericValue & displayPercentage are true on a same label, they will be displayed as percentage (value).

This property will be ignored if the chart options dataLabelFormatter is provided.

Default value
true

displayPercentageOnDataLabel

Property
Type
boolean | undefined

Indicates whether the percentage associated to a slice is to be displayed on its data label.

If both displayNumericValue & displayPercentage are true on a same label, they will be displayed as percentage (value)

This property will be ignored if the chart options dataLabelFormatter is provided.

Default value
false

displayCategoryOnTooltip

Property
Type
boolean | undefined

Indicates whether the category associated to a slice is to be displayed on its tooltip.

This property will be ignored if the chart options tooltipFormatter is provided.

Default value
true

displayNumericValueOnTooltip

Property
Type
boolean | undefined

Indicates whether the numeric value associated to a slice is to be displayed on its tooltip.

If both displayNumericValue & displayPercentage are true on a same label, they will be displayed as percentage (value)

This property will be ignored if the chart options tooltipFormatter is provided.

Default value
true

displayPercentageOnTooltip

Property
Type
boolean | undefined

Indicates whether the percentage associated to a slice is to be displayed on its tooltip.

If both displayNumericValue & displayPercentage are true on a same label, they will be displayed as percentage (value)

This property will be ignored if the chart options tooltipFormatter is provided.

Default value
true

numericValueFormat

Property
Type
NumberFormatOptions | undefined

Specifies how the numerical values should be formatted (applied to label, tooltip and legend).

Can be overridden for the tooltips by series.dataTooltipValueFormat.

percentValueFormat

Property
Type
NumberFormatOptions | undefined

Specifies how the percent values should be formatted (applied to label, tooltip and legend).

Can be overridden for the tooltips by series.dataTooltipPercentFormat.

valuePrefix

Property
Type
string | undefined

Adds a prefix to all the values displayed on the pie chart: data labels, tooltips and legend.

valueSuffix

Property
Type
string | undefined

Adds a suffix to all the values displayed on the pie chart: data labels, tooltips and legend.

percentagePrefix

Property
Type
string | undefined

Adds a prefix to all the percentages displayed on the pie chart: data labels, tooltips and legend.

percentageSuffix

Property
Type
string | undefined

Adds a suffix to all the percentages displayed on the pie chart: data labels, tooltips and legend.

dataLabelsCharacterLimit

Property
Type
number | null | undefined

If set, the category on the data label is truncated to display only characterLimit characters, and an ellipsis ("...") is added to the end of the label.

Does not affect the value or percentage displayed in labels. Not applicable to tooltips or legend labels.

Default value
undefined

ticks

Property
Type
WebChartPieChartTick | undefined

Specifies how to render the ticks shown on each slide. Ticks will be displayed with default values if not provided.

dataLabelsInside

Property
Type
boolean | undefined

Whether to place the data labels inside the pie slices.

When set to true the following properties will be ignored:

  • dataLabelsOffset
  • alignDataLabels
  • optimizeDataLabelsOverlapping
Default value
false

dataLabelsOffset

Property
Type
number | undefined

Determines in pixel how far the data labels should be placed from their slice. If a negative value is provided the label will be placed inside of the chart.

Ignored when dataLabelsInside is set to true.

Default value
10

alignDataLabels

Property
Type
boolean | undefined

Aligns labels into columns to make them more readable and avoid them to overlap each other.

Ignored when dataLabelsInside is set to true.

Default value
false

optimizeDataLabelsOverlapping

Property
Type
boolean | undefined

Optimizes the data labels rendering to avoid them to be cut off on the edges or to overlap the legend by wrapping them and adding padding to the chart.

Ignored when dataLabelsInside is set to true.

Default value
false

sliceGrouping

Property
Type
WebChartPieChartGroupSlice | undefined

Specifies if and how the slices under a given percentage threshold are grouped into a unique slice.

slices

Property
Type
WebChartPieChartSlice[] | undefined

An array of WebChartPieChartSlice representing the ids, labels and styles of the pie slices.

When this property is not defined, or when a pie slice does not have a matching slice in this array, the series' fillSymbol will be used. If the series' fillSymbol does not contain color information, colors from the color ramps will be utilized.

WebChartGaugeSeries

Type definition

JSON representation of the gauge series

Supertypes
WebChartSeries

type

Property
Type
typeof WebChartTypes.GaugeSeries

Represents a unique string identifier for the WebChartGaugeSeries object. For the WebChartGaugeSeries object, it is gaugeSeries.

valueConversion

Property
Type
ValueConversion | undefined

Defines the conversion to apply to the gauge value.

featureIndex

Property
Type
number | undefined

Specifies the index of the feature to be rendered.

This property will be ignored for a statistic gauge (indicated via WebGaugeChart.subType property).

For feature-based gauge, if this property is not present, the first feature will be used (featureIndex = 0)

WebChartLineChartSeries

Type definition
Type parameters
<SeriesType extends "lineSeries" | "radarSeries" = "lineSeries">

JSON representation of the line chart series.

type

Property
Type
SeriesType

Represents a unique string identifier for the WebChartLineChartSeries object. For the WebChartLineChartSeries object, it is lineSeries.

y

Property
Type
string[] | string

Specifies the numeric field(s) used by the series.

lineSymbol

Property
Type
ISimpleLineSymbol | undefined

Contains styling information on how the line or line segments should be rendered.

lineSmoothed

Property
Type
boolean | undefined

Specifies whether line segments should be smoothed.

Default value
false

showArea

Property
Type
boolean | undefined

Indicates whether line series show area.

Default value
false

markerVisible

Property
Type
boolean | undefined

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

Default value
true

markerSymbol

Property
Type
ISimpleMarkerSymbol | undefined

Contains styling information on how the marker should be rendered.

areaColor

Property
Type
Color | undefined

Specifies the color of the filled area for line chart.

areaColor will be applied only if showArea is true, and is defaulted to the line color if not provided.

stackNegativeValuesToBaseline

Property
Type
boolean | undefined

Specifies how negative values are treated in stacked series. true - negative values will be stacked on the base line. false - negative values will be stacked in relation to their previous values in the stack.

Default value
true

connectLines

Property
Type
boolean | undefined

Whether to connect the lines when there's a gap in the data. Can be overridden by the temporal data setting nullPolicy.

Default value
true

nullCategory

Property
Type
WebChartNullCategory | undefined

Specifies how to display the category with null value.

Setting this property will ensure that the item with no data is displayed on the chart with the specified text and color.

WebChartBoxPlotSeries

Type definition

JSON representation of the box plot series

Supertypes
WebChartSeries

type

Property
Type
typeof WebChartTypes.BoxPlotSeries

y

Property
Type
string[] | string

Specifies the numeric field(s) used by the box plot series.

fillSymbol

Property
Type
ISimpleFillSymbol | undefined

Contains styling information on how the box and whiskers should be rendered. The whiskers use the fillSymbol.outline.

WebChartHeatChartGradient

Type definition

JSON representation of the Heat chart with gradient heat rules.

colorList

Property
Type
[Color, Color] | undefined

An array of 2 colors to use for the gradient. The first color represents the minimum value, the second color represents the maximum value.

minValue

Property
Type
number | undefined

Specifies the custom minimum value for the heat chart. If none is provided, the minimum value from the dataset will be used.

maxValue

Property
Type
number | undefined

Specifies the custom maximum value for the heat chart. If none is provided, the maximum value from the dataset will be used.

outsideRangeLowerColor

Property
Type
Color | undefined

Specifies the color to use for the items outside the lower range specified by minValue. If none is provided, the default color will be used.

Default value
`[250, 250, 250, 255] - white`

outsideRangeUpperColor

Property
Type
Color | undefined

Specifies the color to use for the items outside the upper range specified by maxValue. If none is provided, the default color will be used.

Default value
`[0, 0, 255, 255] - blue`

WebChartHeatChartHeatClassBreaks

Type definition

JSON representation of the Heat chart with class breaks heat rules.

breaksCount

Property
Type
number | undefined

The number of class breaks to be used for the heat chart.

Default value
5

classificationMethod

Property
Type
WebChartClassBreakTypes | undefined

The classification method to be used for the heat chart. equal-interval - divides the range of values into equal-sized intervals. quantile - divides the range of values into intervals that contain an equal number of features. natural-breaks - identifies natural groupings of values in the data by minimizing the variance within classes and maximizing the variance between classes. manual - allows you to manually specify the class breaks.

WebChartHeatChartEmptyCell

Type definition

JSON representation of the heat chart empty cell configuration.

text

Property
Type
string | undefined

Specifies the text to use by the empty cells. If none is provided, the default null text will be used.

Default value
`null`

symbol

Property
Type
ISimpleFillSymbol | undefined

Specifies the symbol to use by the empty cells. If none is provided, the default symbol will be used.

WebChartHeatChartSeries

Type definition

JSON representation of the heat chart series.

Supertypes
WebChartSeries

type

Property
Type
typeof WebChartTypes.HeatSeries

y

Property
Type
string

Specifies which field represents the y-coordinates of this series. Empty string or one with just white spaces is not allowed. At least 1 or more word characters (a-z, A-Z, _) are needed.

xTemporalBinning

Property
Type
WebChartCalendarDatePartsBinning | undefined

Describes how to bin the temporal data when the x-axis field is a date.

yTemporalBinning

Property
Type
WebChartCalendarDatePartsBinning | undefined

Describes how to bin the temporal data when the y-axis field is a date.

gridLine

Property
Type
ISimpleLineSymbol | undefined

Defines how the cells outline should render.

heatRulesType

Property
Type
WebChartHeatChartHeatRulesTypes | undefined

Defines the type of rule to apply for the heat chart.

Default value
WebChartHeatChartHeatRulesTypes.Gradient

gradientRules

Property
Type
WebChartHeatChartGradient | undefined

Specifies the details of the gradient rules for the heat chart.

classBreaksRules

Property
Type
WebChartHeatChartHeatClassBreaks | undefined

Specifies the details of the class breaks rules for the heat chart.

emptyCells

Property
Type
WebChartHeatChartEmptyCell | undefined

Specifies how to display the empty cells, in terms of text and symbology.

WebChartRadarChartSeries

Type definition
Supertypes
WebChartLineChartSeries<"radarSeries">

WebChart

Type definition

JSON representation of the web chart object.

version

Property
Type
typeof WebChartCurrentVersion

Version of the specification. Used to identify when a saved config was created.

type

Property
Type
typeof WebChartTypes.Chart

Represents a unique string identifier for the WebChart object. For the WebChart object, it is chart.

id

Property
Type
string | undefined

Can be used to uniquely identify a chart.

iLayer

Property
Type
IFeatureLayer | undefined

Property representing the layer to be used by the chart. If not provided we expect a layer object to be set on the component.

dataFilters

Property
Type
WebChartDataFilters | undefined

Used to filter the chart's data while in layer mode.

title

Property
Type
WebChartText | undefined

Specifies title of the chart.

subtitle

Property
Type
WebChartText | undefined

Specifies subtitle of the chart.

Property
Type
WebChartText | undefined

Specifies footer of the chart.

background

Property
Type
Color | undefined

Specifies the background color of the chart.

Default value
`[255, 255, 255, 255]`

cursorCrosshair

Property
Type
WebChartCursorCrosshair | undefined

Specifies cursor's crosshair information for the chart. Only for XY charts.

legend

Property
Type
WebChartLegend | WebChartPieChartLegend | undefined

Specifies the Legend information for the chart.

axes

Property
Type
[WebChartAxis, WebChartAxis?, WebChartAxis?] | undefined

Represents an array of at least 1 or at most 3 chart axes accompanying the chart. The third axis config is used when a series assignToSecondValueAxis is set to true. Some of the axis features won't apply to the third axis (e.g. labels behaviors).

horizontalAxisLabelsBehavior

Property
Type
WebChartLabelBehavior | undefined

Represents the way the labels should behave when the horizontal axis can't display them all.

Applicable to XY charts only. Histograms support none and rotate only. The default horizontal axis value is rotate, except for histograms, where it is none.

Default value
"rotate"

verticalAxisLabelsBehavior

Property
Type
WebChartLabelBehavior | undefined

Represents the way the labels should behave when the vertical axis can't display them all.

For XY Chart only.

Default value
"wrap"

series

Property
Type
WebChartSeriesType[]

Represents an array of various chart series to be plot inside the chart.

Empty array is not allowed.

rotated

Property
Type
boolean | undefined

Specifies whether or not the chart is rotated.

Default value
false

stackedType

Property
Type
WebChartStackedKinds | undefined

Specifies how the bars/lines should be placed when multiple series are rendered in the same chart.

Only applicable to bar and line series.

Default value
sideBySide

colorMatch

Property
Type
boolean | undefined

Specifies whether to first try matching the colors from the layer renderer or the chart renderer for coloring the chart elements, like markers, line segments, columns, etc.

To do so, this property needs to be set to true.

When there is no matching color found (for when colorMatch = true) or when colorMatch = false, the colors from the config, and then from the color ramps will be used, in that order.

Default value
false

chartRenderer

Property
Type
IDrawingInfo["renderer"] | undefined

Renderer to use to style the series when the chart uses the color match mode.

Considered before the layer's renderer.

orderOptions

Property
Type
{ series?: WebChartOrderSeriesBy; data?: WebChartDirectionalDataOrder | WebChartMultiAxesDataOrder | WebChartPredefinedLabelsDataOrder; orderByFields?: string[]; } | undefined

Chart order options for data and series.

WebGaugeChart

Type definition

JSON representation of the gauge chart.

Supertypes
WebChart

innerRadius

Property
Type
number | null | undefined

Represents the size of the hole in middle of the chart. The number is used as a percentage rather than a fixed value.

Default value
50

startAngle

Property
Type
number | null | undefined

Represents where is the chart's starting point

Default value
-180

endAngle

Property
Type
number | null | undefined

Represents where is the chart's ending point. To be related with startAngle. If endAngle-startAngle is 360 the chart will render as a full circle.

Default value
180

axes

Property
Type
[WebChartGaugeAxis]

Array of one WebChartGaugeAxis.

subType

Property
Type
GaugeChartSubTypes | undefined

The type of gauge, like FeatureGauge or StatisticGauge.

When this property is not specified, it will be defaulted to GaugeChartSubTypes.StatisticGauge.

WebBoxPlot

Type definition

JSON representation of the box plot.

Supertypes
WebChart

showOutliers

Property
Type
boolean | undefined

Whether to show the outliers on the chart.

standardizeValues

Property
Type
boolean | undefined

Whether to standardize the values by calculating the series z-score.

showMean

Property
Type
boolean | undefined

Whether to show the mean lines on the chart. Applies only if a split-by field is set.

Additionally the chart will render with that option enabled only if the the series array contains one box plot series and N lines series.

Default value
false

series

Property
Type
(WebChartBoxPlotSeries | WebChartLineChartSeries)[]

The box plot series can be of type boxPlotSeries or lineSeries.

WebRadarChart

Type definition

Gives a JSON representation of the radar chart object.

Supertypes
WebChart

series

Property
Type
WebChartRadarChartSeries[]

The radar chart series.

axes

Property
Type
[WebChartRadarChartAxis, WebChartAxis]

Array of two axes, one specific to the radar chart and the other one common to all charts.

WebHeatChart

Type definition

Gives a JSON representation of the heat chart object.

series

Property
Type
WebChartHeatChartSeries[]

The heat chart series.

orderOptions

Property
Type
Omit<WebChart["orderOptions"], "data" | "orderByFields"> & { data?: WebChartMultiAxesDataOrder; } | undefined

hideEmptyRowsAndColumns

Property
Type
boolean | undefined

Whether to hide entire rows or columns that are empty (i.e. contain no valid data).

Default value
false

viewType

Property
Type
WebChartHeatChartViewTypes | undefined

The calendar view type for the heat chart.

NOTE: This property is only applicable to the calendar heat chart.

includeLeapDay

Property
Type
boolean | undefined

Whether to include leap day (Feb. 29th) in queries.

Default value
false

WebChartTemporalBinningBase

Type definition

Describes the basic properties available for a temporal binning

trimIncompleteTimeInterval

Property
Type
boolean | undefined

Determines whether incomplete time intervals at the start or end of the data span (depending on the timeAggregationType) will be removed from the chart.

Incomplete intervals on a chart can cause misleading results in which the period in question is under- or over reported due to a different amount of time in the interval.

true - trim the incomplete intervals. false - does not trim the incomplete intervals.

Default value
true

start

Property
Type
number | undefined

The binning start date.

Current limitation: this is applied only when the provided layer supports the queryBins operation.

end

Property
Type
number | undefined

The binning end date.

Current limitation: this is applied only when the provided layer supports the queryBins operation.

offset

Property
Type
{ unit: WebChartTemporalBinningUnits; size: number; } | undefined

Offset to apply to the results.

Current limitation: this is applied only when the provided layer supports the queryBins operation.

WebChartTemporalBinningExtras

Type definition

Describes the extra properties available for a temporal series and for the heat chart.

outTimeZone

Property
Type
string | undefined

Defines the IANA time zone used for temporal bin calculations.

Current limitation: this is applied only when the provided layer supports the queryBins operation.

firstDayOfWeek

Property
Type
number | undefined

The first day of the week. This property is used to determine the start of the week for date-based bins. The default value depends on the user locale (e.g. 7 as Sunday for US, 1 as Monday for France).

Current limitation: this is applied only when the provided layer supports the queryBins operation.

nullPolicy

Property
Type
WebChartNullPolicyTypes | undefined

How summarized bins returning a null value are displayed. Supported options are:

  • null, zero, and interpolate for line series.
  • null and zero for bar series.
Default value
"null"