Skip to main content
Version: 4.1

Chart Set Config

Specifies the configuration of a set of chart values.

Attributes​

Common​

Label​

Specifies the label of the set.

Attribute Values​
ValueDescription
<string>Label of the set.

Type​

Specifies the type for this set. Overrides the chart's type. Can only be specified if the chart's type is not pie or doughnut.

Attribute Values​
ValueDescription
barBar chart.
pointPoint chart.
lineLine chart.
splineSpline chart.
stepStepped line chart.
thresholdThreshold lines.

This attribute is available when owner's type is neither "pie" nor "doughnut".

When owner's type is neither "pie" nor "doughnut", this attribute defaults to the owner's type attribute.

Hidden​

Specifies whether the set is hidden. If set to true, the set will not be displayed in the chart.

Attribute Values​
ValueDescription
falseDefault value. Set is visible.
trueSet is hidden.

The default value is: false.

Display Legend​

Specifies whether to display this set in the chart legend.

Attribute Values​
ValueDescription
trueDefault value. Display this set in the legend.
falseHide this set from the legend.

The default value is: true.

Data​

Data Mode​

Specifies the mode of the data. When the chart's Values attribute is used, it applies to sets with Data Mode set to values, matching the order of the sets. For example, if there are 4 sets and the 1st and 3rd have Data Mode set to datasource, the 1st and 2nd entries in the Values array will correspond to the 2nd and 4th sets, respectively.

Attribute Values​
ValueDescription
valuesDefault value. Values are set with the chart's value attribute.
datasourceValues are set by a linked datasource.

The default value is: values.

Datasource ID​

Specifies the ID of the datasource.

Attribute Values​
ValueDescription
<string>ID of the datasource.

This attribute is available when datamode is "datasource".

Value Data Name​

Specifies the name of the column containing the value.

Attribute Values​
ValueDescription
<string>Name of the column containing the value.

This attribute is available when datamode is "datasource".

When datamode is "datasource", this attribute defaults to value.

Label Data Name​

Specifies the name of the column containing the label. By default it's the same as Value Data Name

Attribute Values​
ValueDescription
<string>Name of the column containing the label.

This attribute is available when datamode is "datasource" and type is not "threshold".

When datamode is "datasource" and type is not "threshold", this attribute defaults to the valuedataname attribute.

Category Data Name​

Specifies the name of the column containing the category label. These labels are displayed on the category axis (x if vertical, y if horizontal), and in pie/doughnut charts they are used for the legend. If set, it overrides the chart's Category Labels attribute. When multiple sets define Category Data Name, the last one in Set Config applies.

Attribute Values​
ValueDescription
<string>Name of the column containing the category label.

This attribute is available when datamode is "datasource" and type is not "threshold".

Stroke Color Data Name​

Specifies the name of the column containing the stroke color. When set, datasource rows override the set's Stroke Color attribute with per-value colors.

Attribute Values​
ValueDescription
<string>Name of the column containing the stroke color.

This attribute is available when datamode is "datasource".

Fill Color Data Name​

Specifies the name of the column containing the fill color. When set, datasource rows override the set's Fill Color attribute with per-value colors.

Attribute Values​
ValueDescription
<string>Name of the column containing the fill color.

This attribute is available when datamode is "datasource" and type is not "threshold".

Stack Group​

Specifies the stack group for this set. Sets with the same stack group will be stacked together.

Attribute Values​
ValueDescription
<string>Stack group name.

This attribute is available when owner's stacked is one of "incremental" or "absolute".

Origin​

Specifies the origin (baseline) value for this set. The origin is the reference point from which bars or areas are drawn. If not specified, the global chart origin or 0 is used.

Attribute Values​
ValueDescription
<number>Origin value for the set.

This attribute is available when type is not "threshold".

When type is not "threshold", this attribute defaults to 0.

Threshold Axis​

Specifies the axis used by threshold values.

Attribute Values​
ValueDescription
valueDefault value. Render lines on the value axis.
categoryRender lines on the category axis.

This attribute is available when type is "threshold".

When type is "threshold", this attribute defaults to value.

Style​

Stroke Color​

Specifies the color of the set's stroke. Supports a single CSS or theme color, or a per-value color list. In pie and doughnut charts, list entries apply to slices; in other chart types they apply to values in order and repeat when shorter than the dataset. Comma-separated lists can include functional colors such as rgb(...), rgba(...), hsl(...), and hsla(...). JSON arrays are also supported.

Minimum value is 0.

Attribute Values​
ValueDescription
<CSS color>Color of the set's stroke.
<comma-separated list of CSS colors>Per-value stroke colors.
<json>JSON array of per-value stroke colors.

The default value is: auto.

Stroke Width​

Specifies the stroke width. In line-like and threshold sets, this is the line width; in pie and doughnut charts, it is the slice border width. If Stroke Color is set for pie or doughnut and Stroke Width is omitted, the border width defaults to 1.

Minimum value is 0.

Attribute Values​
ValueDescription
<number>Stroke width.

When type is one of "line", "spline", "step", or "threshold", this attribute defaults to 2.

Stroke Dash​

Specifies the pattern of dashes and gaps used to form the stroke. Values are comma and/or white space separated lengths (pixels).

Attribute Values​
ValueDescriptionExample
<comma-separated list>Dash pattern.5,3

This attribute is available when type is "line" or type is "spline" or type is "step" or type is "threshold" or owner's type is "pie" or owner's type is "doughnut".

Stroke Cap​

Specifies the stroke cap style.

Attribute Values​
ValueDescription
buttDefault value. Butt.
roundRound.
squareSquare.

This attribute is available when type is one of "line", "spline", or "step".

The default value is: butt.

Stroke Join​

Specifies the stroke join style.

Attribute Values​
ValueDescription
miterMiter.
roundDefault value. Round.
bevelBevel.

This attribute is available when type is "line" or type is "spline" or type is "step" or owner's type is "pie" or owner's type is "doughnut".

When type is "line" or type is "spline" or type is "step" or owner's type is "pie" or owner's type is "doughnut", this attribute defaults to round.

Fill​

Specifies whether the set is filled.

Attribute Values​
ValueDescription
noneDefault value. No fill.
originFill from the origin.
startFill from the start.
endFill from the end.

This attribute is available when type is not "threshold" and owner's type is not "pie" and owner's type is not "doughnut".

The default value is: none.

Fill Color​

Specifies the fill color of the set. Supports a single CSS or theme color, or a per-value color list. In pie and doughnut charts, list entries apply to slices; in other chart types they apply to values in order and repeat when shorter than the dataset. Comma-separated lists can include functional colors such as rgb(...), rgba(...), hsl(...), and hsla(...). JSON arrays are also supported.

Attribute Values​
ValueDescription
<CSS color>Color of the set.
<comma-separated list of CSS colors>Per-value fill colors.
<json>JSON array of per-value fill colors.

This attribute is available when type is not "threshold".

When type is not "threshold", this attribute defaults to auto.

Value Label Type​

Specifies the type of value label to be shown.

Attribute Values​
ValueDescription
popupValue labels are shown on mouseover, or on touch (if on a
touch-enabled device).
startValue labels are shown at the start of the value.
centerValue labels are shown at the center of the value.
endValue labels are shown at the end of the value.
hiddenHide value labels.

This attribute is available when type is not "threshold".

When type is not "threshold", this attribute defaults to the owner's valuelabeltype attribute.

Point Style​

Specifies the style of point to be drawn.

Attribute Values​
ValueDescription
noneNo point.
circleDefault value. Circle.
crossCross.
crossRotCross rotated.
dashDash.
lineLine.
rectRectangle.
rectRotRectangle rotated.
starStar.
triangleTriangle.

This attribute is available when type is one of "line", "spline", or "step".

When type is one of "line", "spline", or "step", this attribute defaults to circle.

Point Radius​

Specifies the radius of the point.

Minimum value is 0.

Attribute Values​
ValueDescription
<number>Radius of the point.

This attribute is available when type is one of "line", "spline", or "step".

When type is one of "line", "spline", or "step", this attribute defaults to 3.