State.initialSeries
configurationThe initial series configuration of the chart.
state.initialSeries
ArrayThe data item field which contains the category name or date.
The points will be rendered in chronological order if the category is a date.
Default: "category"
The series base color. The supported values are:
The array of data items which represent the series data.
Can be set to :
- Array of objects. Each point is bound to the field specified via the series.field option.
- Array of numbers. Supported when the series.type option is set to "bar", "column", "pie", or "line".
- Array of arrays of numbers. Supported when the series.type option is set to "scatter".
- Scatter and scatter line series need arrays of two values - X value and Y value
The data item field which contains the series value. The field name should be a valid Javascript identifier and should contain only alphanumeric characters (or "$" or "_"), and may not start with a digit.
Default: "value"
The chart series label configuration.
The chart displays the series labels when the series.labels.visible option is set to
true.
state.initialSeries.name
StringThe name of the chart series which is visible in the legend.
state.initialSeries.stack
Boolean|String|ObjectA boolean value indicating if the series should be stacked. A string value is interpreted as series.stack.group.
The
stackoptions is supported when series.type is set to "bar", "column", or "line". All series in the stack must be of the same type.
Stack settings of the first series are inherited as a default value by the rest of the series, in case they are not overridden.
Default: false
state.initialSeries.type
StringThe line width.
The
widthoption is supported when series.type is set to "line".