Chart Set Config
Specifies the configuration of a set of chart values.
Attributes
Common
Label
Specifies the label of the set.
Attribute Values
| Value | Description |
|---|---|
| <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
| Value | Description |
|---|---|
| bar | Bar chart. |
| point | Point chart. |
| line | Line chart. |
| spline | Spline chart. |
| step | Stepped line chart. |
| threshold | Threshold 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
| Value | Description |
|---|---|
| false | Default value. Set is visible. |
| true | Set is hidden. |
The default value is: false.
Display Legend
Specifies whether to display this set in the chart legend.
Attribute Values
| Value | Description |
|---|---|
| true | Default value. Display this set in the legend. |
| false | Hide 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
| Value | Description |
|---|---|
| values | Default value. Values are set with the chart's value attribute. |
| datasource | Values are set by a linked datasource. |
The default value is: values.
Datasource ID
Specifies the ID of the datasource.
Attribute Values
| Value | Description |
|---|---|
| <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
| Value | Description |
|---|---|
| <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
| Value | Description |
|---|---|
| <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
| Value | Description |
|---|---|
| <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
| Value | Description |
|---|---|
| <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
| Value | Description |
|---|---|
| <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
| Value | Description |
|---|---|
| <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
| Value | Description |
|---|---|
| <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
| Value | Description |
|---|---|
| value | Default value. Render lines on the value axis. |
| category | Render 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
| Value | Description |
|---|---|
| <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
| Value | Description |
|---|---|
| <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
| Value | Description | Example |
|---|---|---|
| <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
| Value | Description |
|---|---|
| butt | Default value. Butt. |
| round | Round. |
| square | Square. |
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
| Value | Description |
|---|---|
| miter | Miter. |
| round | Default value. Round. |
| bevel | Bevel. |
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
| Value | Description |
|---|---|
| none | Default value. No fill. |
| origin | Fill from the origin. |
| start | Fill from the start. |
| end | Fill 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
| Value | Description |
|---|---|
| <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
| Value | Description |
|---|---|
| popup | Value labels are shown on mouseover, or on touch (if on a touch-enabled device). |
| start | Value labels are shown at the start of the value. |
| center | Value labels are shown at the center of the value. |
| end | Value labels are shown at the end of the value. |
| hidden | Hide 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
| Value | Description |
|---|---|
| none | No point. |
| circle | Default value. Circle. |
| cross | Cross. |
| crossRot | Cross rotated. |
| dash | Dash. |
| line | Line. |
| rect | Rectangle. |
| rectRot | Rectangle rotated. |
| star | Star. |
| triangle | Triangle. |
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
| Value | Description |
|---|---|
| <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.