Add a point to the series after render time.
Add a point to the series after render time.
Read only.
Read only. The chart that the series belongs to.
Read only.
Read only. An array with the series' data point objects.
Hides the series if visible.
The series' name as given in the options.
Read only.
Read only. The series' options.
Remove the series from the chart.
Remove the series from the chart.
Defaults to true
. Whether to redraw the chart after the series is removed. If doing more operations on the chart, it is a good idea to set redraw to false and call chart.redraw()
after.
Select or unselect the series.
Select or unselect the series. This means its selected
property is set,the checkbox in the legend is toggled and when selected, the series is returned in the chart.getSelectedSeries()
method.
Read only.
Read only. The series' selected state as set by series.select()
.
Apply a new set of data to the series and optionally redraw it.
Apply a new set of data to the series and optionally redraw it. The new data array is passed by reference (except in case of updatePoints
), and may later be mutated when updating the chart data.
Note the difference in behaviour when setting the same amount of points, or a different amount of points, as handled by the updatePoints
parameter.
A utility function to show or hide the series with an optional redraw.
A utility function to show or hide the series with an optional redraw.
Whether to show or hide the series. If undefined, the visibility is toggled.
Defaults to true
. Whether to redraw the chart after the series is altered.If doing more operations on the chart, it is a good idea to set redraw to false and call chart.redraw()
after.
Shows the series if hidden.
Read only.
Read only. The series' type, like "line", "area" etc.
Update the series with a new set of options.
Update the series with a new set of options. For a clean and precise handling of new options, all methods and elements from the series are removed, and it is initiated from scratch. Therefore, this method is more performance expensive than some other utility methods like setData
or setVisible
.
New options that will be merged into the series' existing options.
Read only.
Read only. The series' visibility state as set by series.show()
, series.hide()
, or the initial configuration.
Read only.
Read only. The unique xAxis object associated with the series.
Read only.
Read only. The unique yAxis object associated with the series.
JavaScript name:
Series