State.series
configurationThe configuration of the chart series.
The series type is determined by the value of the type field. If a type value is missing, the type is assumed to be the one specified in seriesDefaults.
Some options accept function as argument. They will be evaluated for each point (supplied as parameter). The theme/seriesDefaults value will be used if no value is returned.
state.series
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"
state.series.color
String|FunctionThe series base color. The supported values are:
- CSS color string, including hex and rgb
- function(point) - user-defined function that will be evaluated for each point. Returning
undefinedwill assume the default series color.
state.series.data
ArrayThe 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
state.series.field
StringThe 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"
state.series.labels
ObjectThe chart series label configuration.
The chart displays the series labels when the series.labels.visible option is set to
true.
state.series.name
StringThe name of the chart series which is visible in the legend.
state.series.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.series.type
Stringstate.series.width
NumberThe line width.
The
widthoption is supported when series.type is set to "line".