Add a point to the series after render time.
Add a point to the series after render time. The point can be added at the end, or by giving it an X value, to the start or in the middle of the series.
Defaults to false
. When shift is true, one point is shifted off the start of the series as one is appended to the end. Use this option for live charts monitoring a value over time.
Defaults to true. When true, the graph will be animated with default animation options. The animation can also be a configuration object with properties duration
and easing
.
Read only.
Read only. The chart that the series belongs to.
Read only.
Read only. An array with the series' data point objects. In case the series data length exceeds the cropThreshold, or if the data is grouped, series.data doesn't contain all the points. It only contains the points that have been created on demand. In these cases, all original X and Y values can be read from series.xData
and series.yData
. Additionally, series.options.data
contains all configuration objects for the points, whether they be numbers, arrays or objects.
Hides the series if visible.
Hides the series if visible. If the chart.ignoreHiddenSeries
option is true, the chart is redrawn without this series.
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.
Remove a point from the series.
Remove a point from the series. Unlike the Point.remove method, this can also be done on a point that is not instanciated because it is outside the view or subject to data grouping.
The index of the point in the data array.
2.1.0
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()
.
Set the compare mode of the series after render time.
Set the compare mode of the series after render time. In most cases it is more useful running Axis.setCompare on the X axis to update all its series.
Can be one of null
, "percent"
or "value"
.
1.3
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.
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.
1.3
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