Wednesday, 18 September 2013

Looping through all items in legend bar in highcharts

Looping through all items in legend bar in highcharts

We have a requirement to autoscroll the legend bar to the first
highlighted item. This was achieved using "load" event
Now I want to loop through all available items in legend bar to check for
highlighted item and then scroll the legend bar to that page. Please
provide your suggestions on how this can be achieved
We need the implementation to be something like this load:function(event){
for(each page in the legend bar) { for(each item available in the above
page) { if(item is visible) { this.legend.scroll(page); break; } } }
Thanks in advance!

No comments:

Post a Comment