How to get series's id in Highcharts / Highstock -
how series's id? in api there name , data etc. don't have id. how id series?
i'm using following way loop series in chart.
$(chart.series).each(function(i, serie){ // want serie's id }); edit:
i found can id using follow way. i'm not sure right way?
$(chart.series).each(function(i, serie){ console.log(serie.options.id); });
if know id of series can reference series chart.get(id)
if want loop through series , list ids of series, this:
$(chart.series).each(function(i, serie){console.log(serie.options.id)}) fiddle : http://jsfiddle.net/nak9d/2/
Comments
Post a Comment