Skip to content
Types
import type { RGBObject, IRendererSymbol, WebChartDataItemColor, WebChartDataItemValue, WebChartDataItem } from "@arcgis/charts-components/spec/data-source.js";

Type definitions

RGBObject

Type definition

JSON representation of the color object.

r

Property
Type
number

Red component of the color, in the range [0, 255].

g

Property
Type
number

Green component of the color, in the range [0, 255].

b

Property
Type
number

Blue component of the color, in the range [0, 255].

a

Property
Type
number | undefined

Alpha component of the color.

Default value
1.0

IRendererSymbol

Type definition
Supertypes
ISymbol

color

Property
Type
Color

outline

Property
Type
ISimpleLineSymbol | undefined

label

Property
Type
string | undefined

uniqueValue

Property
Type
string | undefined

WebChartDataItemColor

Type definition

WebChartDataItemValue

Type definition

WebChartDataItem

Type definition

JSON representation of a typical data item.

WebChartBoxPlotDataItem

Type definition

JSON representation of the processed data for a box plot.

dataItems

Property
Type
WebChartDataItem[]

outliers

Property
Type
WebChartDataItem[] | undefined

meanLines

Property
Type
WebChartDataItem[] | undefined

ScatterplotTrendLineData

Type definition

JSON representation of the processed data for a scatterplot trend line.

r2

Property
Type
number | undefined

trendLinePoints

Property
Type
[WebChartDataItem, WebChartDataItem] | undefined

WebChartScatterplotDataItem

Type definition

JSON representation of the processed data for a scatterplot.

dataItems

Property
Type
WebChartDataItem[]

aggregated

Property
Type
boolean | undefined

TimeIntervalInfo

Type definition

size

Property
Type
number | undefined

WebChartGenericDataItem

Type definition

JSON representation of the generic data structure for bar chart, line chart, combo bar line chart, gauge, heat chart, pie chart and radar chart.

dataItems

Property
Type
WebChartDataItem[]

timeIntervalInfo

Property
Type
TimeIntervalInfo | undefined

Time interval information.

Only applicable to bar chart, line chart.

serverLimitReached

Property
Type
boolean | undefined

Indicates whether the server limit has been reached when fetching data.

WebChartBin

Type definition

JSON representation of a histogram bin.

count

Property
Type
number

minValue

Property
Type
number

Minimum value in the bin.

maxValue

Property
Type
number

Maximum value in the bin.

symbol

Property
Type
WebChartDataItem | undefined

Symbol associated with the bin.

isLastBin

Property
Type
boolean | undefined

Whether this is the last bin.

WebChartHistogramDataItem

Type definition

JSON representation of the processed data for a histogram.

mean

Property
Type
number

median

Property
Type
number

stddev

Property
Type
number

max

Property
Type
number

min

Property
Type
number

sum

Property
Type
number | undefined

Sum of the values of all the points.

count

Property
Type
number | undefined

Number of all the points/features in un-binned data (including only non-null entries).

nulls

Property
Type
number | undefined

Number of null entries in the pool of points.

bins

Property
Type
WebChartBin[]

RGBArray

Type definition
Type
[number, number, number]