An array of data points for the series.
An array of data points for the series. The points can be given in three ways:
pointStart
and pointInterval
given in the plotOptions. If the axis is
has categories, these will be used. This option is not available for range series. Example:
data: [0, 5, 3, 5]
-
An array of arrays with two values. In this case, the first value is the x value and the second is the y value. If the first value is a string, it is applied as the name of the point, and the x value is incremented following the above rules.
For range series, the arrays will be interpreted as [x, low, high]
. In this cases, the X value can be skipped altogether to make use of pointStart
and pointRange
.
Example:
data: [[5, 2], [6, 3], [8, 2]]
-
An array of objects with named values. In this case the objects are point configuration objects as seen below.
Range series values are given by low
and high
.
Example:
data: [{ name: 'Point 1', color: '#00FF00', y: 0 }, { name: 'Point 2', color: '#FF00FF', y: 5 }]
Note that line series and derived types like spline and area, require data to be sorted by X because it interpolates mouse coordinates for the tooltip. Column and scatter series, where each point has its own mouse event, does not require sorting.
This method is deprecated as of version 2.0.
This method is deprecated as of version 2.0. Instead, use options preprocessing as described in the docs.
This method is deprecated as of version 2.0.
This method is deprecated as of version 2.0. Instead, load the data using jQuery.ajax and use options preprocessing as described in the docs.
An id for the series.
An id for the series. This can be used after render time to get a pointer to the series object through chart.get()
.
1.2.0
The index of the series in the chart, affecting the internal index in the chart.series
array, the visible Z index as well as the order in the legend.
The index of the series in the chart, affecting the internal index in the chart.series
array, the visible Z index as well as the order in the legend.
2.3.0
The sequential index of the series in the legend.
The sequential index of the series in the legend.
Try it: Legend in opposite order .
The name of the series as shown in the legend, tooltip etc.
The name of the series as shown in the legend, tooltip etc.
This option allows grouping series in a stacked chart.
This option allows grouping series in a stacked chart. The stack option can be a string or a number or anything else, as long as the grouped series' stack options match each other.
2.1
The type of series.
The type of series. Can be one of area
, areaspline
,
bar
, column
, line
, pie
,
scatter
or spline
. From version 2.3, arearange
, areasplinerange
and columnrange
are supported with the highcharts-more.js component.
When using dual or multiple x axes, this number defines which xAxis the particular series is connected to.
When using dual or multiple x axes, this number defines which xAxis the particular series is connected to. It refers to either the axis id or the index of the axis in the xAxis array, with 0 being the first.
When using dual or multiple y axes, this number defines which yAxis the particular series is connected to.
When using dual or multiple y axes, this number defines which yAxis the particular series is connected to. It refers to either the axis id or the index of the axis in the yAxis array, with 0 being the first.
Define the visual z index of the series.
Define the visual z index of the series.
JavaScript name:
series