Skip to content
ESM
import { WebChartTypes, WebChartStatisticType, WebChartDataTransformations, WebChartColoringPatterns, WebChartLegendPositions } from "@arcgis/charts-components/spec/chart-object-literals.js";

Variables

WebChartTypes

Variable
Type
{ readonly Chart: "chart"; readonly Text: "chartText"; readonly Overlay: "chartOverlay"; readonly Overlays: "chartOverlays"; readonly Legend: "chartLegend"; readonly CursorCrosshair: "cursorCrosshair"; readonly Axis: "chartAxis"; readonly GaugeAxisTick: "gaugeAxisTick"; readonly GaugeNeedle: "gaugeNeedle"; readonly CategoryAxisFormat: "category"; readonly NumberAxisFormat: "number"; readonly DateAxisFormat: "date"; readonly Guide: "chartGuide"; readonly ScatterSeries: "scatterSeries"; readonly PieSeries: "pieSeries"; readonly PieTick: "pieTick"; readonly GaugeSeries: "gaugeSeries"; readonly LineSeries: "lineSeries"; readonly BarSeries: "barSeries"; readonly HistogramSeries: "histogramSeries"; readonly BoxPlotSeries: "boxPlotSeries"; readonly RadarSeries: "radarSeries"; readonly ComboLineAndBarSeries: "comboLineAndBarSeries"; readonly HeatSeries: "heatSeries"; readonly Buffer: "buffer"; readonly SizePolicy: "sizeScale"; readonly CalendarDateParts: "calendarDateParts"; }

WebChartStatisticType

Variable
Type
{ readonly Count: "count"; readonly Sum: "sum"; readonly Minimum: "min"; readonly Maximum: "max"; readonly Average: "avg"; readonly StandardDeviation: "stddev"; readonly Variance: "var"; readonly ContinuousPercentile: "percentile-continuous"; readonly DiscretePercentile: "percentile-discrete"; readonly EnvelopeAggregate: "envelope-aggregate"; readonly CentroidAggregate: "centroid-aggregate"; readonly ConvexHullAggregate: "convex-hull-aggregate"; readonly NoAggregation: "no_aggregation"; }

WebChartDataTransformations

Variable
Type
{ readonly None: "none"; readonly Log: "logarithmic"; readonly Sqrt: "squareRoot"; }

WebChartColoringPatterns

Variable
Type
{ readonly Single: "singleColor"; readonly Match: "colorMatch"; }

WebChartLegendPositions

Variable
Type
{ readonly Left: "left"; readonly Right: "right"; readonly Top: "top"; readonly Bottom: "bottom"; }

WebChartStackedKinds

Variable
Type
{ readonly Side: "sideBySide"; readonly Stacked: "stacked"; readonly Stacked100: "stacked100"; }

WebChartBoxPlotMultipleSeriesKinds

Variable
Type
{ readonly Side: "sideBySide"; readonly MeanLines: "meanLines"; }

WebChartSortOrderKinds

Variable
Type
{ readonly Ascending: "ASC"; readonly Descending: "DESC"; }

StatisticsDefaults

Variable
Type
{ readonly statisticType: "count"; readonly sortingOrder: "ASC"; }

WebChartLineSmoothedKinds

Variable

Represents the different types of smoothing that can be applied to a line chart when the lineSmoothed property is set to true.

Type
{ readonly Bezier: "bezier"; readonly MonotoneX: "monotoneX"; readonly MonotoneY: "monotoneY"; }

WebChartTemporalBinningUnits

Variable

The temporal binning units

Type
{ readonly Second: "seconds"; readonly Minute: "minutes"; readonly Hour: "hours"; readonly Day: "days"; readonly Week: "weeks"; readonly Month: "months"; readonly Quarter: "quarters"; readonly Year: "years"; }

WebChartCalendarDatePartsUnits

Variable

Represents the units that can be used for calendar-based date parts binning.

Type
{ readonly DayOfMonth: "dayOfMonth"; readonly DayOfWeek: "dayOfWeek"; readonly DayOfYear: "dayOfYear"; readonly HourOfDay: "hourOfDay"; readonly MonthOfYear: "monthOfYear"; readonly MinuteOfDay: "minuteOfDay"; readonly WeekOfYear: "weekOfYear"; readonly QuarterOfYear: "quarterOfYear"; }

WebChartCalendarBinningOffsetUnits

Variable

The temporal binning units for the calendar based binning offset

Type
{ readonly Second: "seconds"; readonly Minute: "minutes"; readonly Hour: "hours"; readonly Day: "days"; }

WebChartHeatChartHeatRulesTypes

Variable

Represents the different types of heat rule that can be applied to a heat chart.

Type
{ readonly Gradient: "gradient"; readonly Renderer: "renderer"; }

WebChartNullPolicyTypes

Variable

Represents the different types of null policy that can be applied to a chart using the time binning feature.

Type
{ readonly Null: "null"; readonly Zero: "zero"; readonly Interpolate: "interpolate"; }

WebChartTimeAggregationTypes

Variable

Represents the different types of time aggregation that can be applied to a chart using the time binning feature.

Type
{ readonly Start: "equalIntervalsFromStartTime"; readonly End: "equalIntervalsFromEndTime"; }

WebChartLabelBehavior

Variable

Represents the different types of behaviors that can applied to a chart axis.

Type
{ readonly Hide: "hide"; readonly Rotate: "rotate"; readonly Stagger: "stagger"; readonly Wrap: "wrap"; }

WebChartVersionStatus

Variable
Type
{ readonly Same: "same"; readonly Newer: "newer"; readonly Older: "older"; readonly Unrecognized: "unrecognized"; }

WebChartAxisTypes

Variable

Represents the different types of axes that can be used in a chart.

Type
{ readonly Value: "value"; readonly Date: "date"; readonly Category: "category"; }

GaugeChartSubTypes

Variable

Represents the different types of gauge charts.

Type
{ readonly FeatureGauge: "featureGauge"; readonly StatisticGauge: "statisticGauge"; }

SizePolicyScaleTypes

Variable

Represents the types of scales that can be applied to the size policy. Use by bubble charts (scatterplot).

Type
{ readonly Linear: "linear"; readonly Logarithmic: "logarithmic"; }

WebChartRadarChartAxisLabelsOrientation

Variable

Labels orientation for radar chart axes.

Type
{ readonly Radial: "radial"; readonly Circular: "circular"; readonly Horizontal: "horizontal"; }

WebChartOrderDataByTypes

Variable

The types of order assocated with chart data.

Type
{ readonly YValue: "arcgis-charts-y-value"; readonly Mean: "arcgis-charts-mean"; readonly Median: "arcgis-charts-median"; readonly Category: "arcgis-charts-category"; readonly MultiAxes: "arcgis-charts-multi-axes"; }

WebChartHeatChartViewTypes

Variable

Represents the different types of views that can be applied to a heat chart.

Type
{ readonly singleCalendarView: "SingleCalendarView"; readonly sequentialCalendarViews: "SequentialCalendarViews"; }

WebChartClassBreakTypes

Variable

Class break types for data classification in charts.

Type
{ readonly equalInterval: "equal-interval"; readonly quantile: "quantile"; readonly naturalBreaks: "natural-breaks"; readonly manual: "manual"; }

Type definitions

WebChartTypes

Type definition
Type
(typeof WebChartTypes)[keyof typeof WebChartTypes]

WebChartStatisticType

Type definition
Type
(typeof WebChartStatisticType)[keyof typeof WebChartStatisticType]

WebChartDataTransformations

Type definition

WebChartColoringPatterns

Type definition

WebChartLegendPositions

Type definition
Type
(typeof WebChartLegendPositions)[keyof typeof WebChartLegendPositions]

WebChartStackedKinds

Type definition
Type
(typeof WebChartStackedKinds)[keyof typeof WebChartStackedKinds]

WebChartBoxPlotMultipleSeriesKinds

Type definition

WebChartSortOrderKinds

Type definition
Type
(typeof WebChartSortOrderKinds)[keyof typeof WebChartSortOrderKinds]

WebChartLineSmoothedKinds

Type definition

WebChartTemporalBinningUnits

Type definition

WebChartCalendarDatePartsUnits

Type definition

WebChartCalendarBinningOffsetUnits

Type definition

WebChartHeatChartHeatRulesTypes

Type definition

WebChartNullPolicyTypes

Type definition
Type
(typeof WebChartNullPolicyTypes)[keyof typeof WebChartNullPolicyTypes]

WebChartTimeAggregationTypes

Type definition

WebChartLabelBehavior

Type definition
Type
(typeof WebChartLabelBehavior)[keyof typeof WebChartLabelBehavior]

WebChartVersionStatus

Type definition
Type
(typeof WebChartVersionStatus)[keyof typeof WebChartVersionStatus]

WebChartAxisTypes

Type definition
Type
(typeof WebChartAxisTypes)[keyof typeof WebChartAxisTypes]

GaugeChartSubTypes

Type definition
Type
(typeof GaugeChartSubTypes)[keyof typeof GaugeChartSubTypes]

SizePolicyScaleTypes

Type definition
Type
(typeof SizePolicyScaleTypes)[keyof typeof SizePolicyScaleTypes]

WebChartRadarChartAxisLabelsOrientation

Type definition

WebChartOrderDataByTypes

Type definition

WebChartMultiAxesDataOrder

Type definition

A data order option that allows the items to be ordered on both the x- and y-axes;

For each axis, the order can be either a direction (ascending or descending) for all axis types; or a predefined list of labels when the axis is categorical.

orderType

Property
Type
"arcgis-charts-multi-axes"

The type of order, which is two dimensional.

orderByX

Property
Type
string[] | WebChartSortOrderKinds | undefined

The direction of the order for the x axis. If the axis is categorical, this can also be a predefined list of labels.

orderByY

Property
Type
string[] | WebChartSortOrderKinds | undefined

The direction of the order for the y axis. If the axis is categorical, this can also be a predefined list of labels.

WebChartDirectionalDataOrder

Type definition

A data order option that allows the items to be ordered either ascending or descending. This option can be used for the following types of order: by category, by mean, by median, and by y value.

orderType

Property
Type
"arcgis-charts-category" | "arcgis-charts-mean" | "arcgis-charts-median" | "arcgis-charts-y-value"

The type of order, eg by category, by mean, by median, or by y value.

orderBy

Property
Type
WebChartSortOrderKinds

The direction of the order, either ascending or descending.

preferLabel

Property
Type
boolean | undefined

Indicates whether to order data by the label or the value.

For example, when a field has domain coded values or supbtypes, setting this property to false will order the data by the field value. Otherwise the domain description, subtypes description, or the alias of the field will be used to sort the data.

Default value
true

WebChartPredefinedLabelsDataOrder

Type definition

A data order option that allows the items to be ordered by category based on a predefined list of labels.

orderType

Property
Type
"arcgis-charts-category"

The type of order, which is by category.

orderBy

Property
Type
string[]

The predefined list of labels to order the data by.

When the value of the preferLabel property is set to false, the orderBy list should be a list of coded domain values or field names; otherwise, it should be a list of domain descriptions, subtypes descriptions, or field aliases.

preferLabel

Property
Type
boolean | undefined

Indicates whether to order data by the label or the value.

For example, when a field has domain coded values or supbtypes, setting this property to false will order the data by the field value. Otherwise the domain description, subtypes description, or the alias of the field will be used to sort the data.

When the value is set to true or undefined, the orderBy property should contain a list of labels like domain descriptions, subtypes descriptions, or field aliases. When the value is set to false, the orderBy property should contain a list of coded domain values or field names, in order for the data to be sorted correctly.

Default value
true

WebChartOrderSeriesBy

Type definition

Order options for split-by series.

preferLabel

Property
Type
boolean | undefined

When the value is set to true, we want to order the split-by series based on the series' names (alias, custom label, or description).

When the value is set to false, we want to order the split-by series based on the series' split-by values.

Default value
true

orderBy

Property
Type
WebChartSortOrderKinds | undefined

The direction of the order.

Default value
WebChartSortOrderKinds.Ascending

WebChartHeatChartViewTypes

Type definition

WebChartClassBreakTypes

Type definition

Class break types for data classification in charts.

Type
(typeof WebChartClassBreakTypes)[keyof typeof WebChartClassBreakTypes]