Get Series by name option
Can we have option to get series by name like
chart.series['name'] as of now either need to iterate like
$(chart.series).each(function(i, serie){console.log(serie.name)})
or if we the know the order then fetch chart.series[0].name
2
votes
![](https://secure.gravatar.com/avatar/8ea2e61f8d27a662aac7377ba6f005e7?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)
-
Bharath kuamar commented
this.series.name
it prints name of the series...
-
There's the Chart.get method that lets you look up the series by its id. See http://api.highcharts.com/highcharts#Chart.get . If you set the series id equal to its name, it will behave like you want.