javascript - How to Check and Uncheck all the Legend elements in HighCharts Linechart? -


i want customize checking , unchecking legend elements @ once, iam not getting idea, can this? let me know way this..

this example that, plus variety of other things legend items , checkboxes, using series of external controls:

http://jsfiddle.net/simo/57sr9/94/

function:

$('#checkall').click(function(){     for(i=0; < chart.series.length; i++) {         if(chart.series[i].selected == false){             chart.series[i].select();             showseries.call(chart.series[i], {checked: true});         }     } }); 

Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -