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
Post a Comment