This section is regarding Methods and Properties available in DataSeries. All DataSeries of a Chart reside inside data array and you can access them as shown below.

Example :[0].get(“type”);[0].set(“type”, “spline”);

  • Chart should be rendered before you can access DataSeries & its methods / properties.

DataSeries Methods:

Method Description Example
get(String propertyName) Returns the specified property of dataSeries[0].get(“zoomType”);
set(String propertyName, Mixed value [,Boolean updateChart = true]) Sets the specified property of dataSeries & optionally updates (default) the chart[0].set(“zoomType”, “y”);
addTo(String arrayName, Object options [, Number index = array.length]) Adds a new element of given type to the specified array[0].addTo(“dataPoints”, {y: 27});
remove() Remove the specified dataSeries[1].remove();

Writable Properties in DataSeries:

All data options become available as properties after Chart Render. You can access them either via get method or dot notation. But you can change / set those values only via set method.

Please refer to DataSeries Element for complete list of properties available.

Try it Yourself by Editing the Code below.

In order to provide better support,we have closed the comments and switched completely to our Forums.
If you have any questions, please feel free to ask in our forums.