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
Raunak
shared this idea
-
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.