DevExtreme React - Access a Series Using the API
The Chart exposes the following methods for accessing a series. All of them return one or several objects whose fields and methods are described in the Series section of the API reference.
getAllSeries()
Gets all series of the Chart.getSeriesByName(seriesName)
Gets a series by its name.getSeriesByPos(seriesIndex)
Gets a series by its index in the series array. The index is zero-based.
Apart from the API methods, you can access a series in the event handlers. For example, the onSeriesClick event handler gets the clicked series in the argument.
Once you get the series, you can access its child points. For further information, refer to the Access a Series Point Using the API topic.
See Also
- Show and Hide a Series
- Call Methods: jQuery | Angular | AngularJS | Knockout | Vue | React | ASP.NET MVC
If you have technical questions, please create a support ticket in the DevExpress Support Center.