标签:
$(‘#uncheckAll‘).click(function(){
var chart = $(‘#container‘).highcharts();
var series = chart.series;
for(i=0; i < chart.series.length; i++) {
series[i].setVisible(false, false);
}
chart.redraw();
});
$(‘#checkAll‘).click(function(){
var chart = $(‘#container‘).highcharts();
var series = chart.series;
for(i=0; i < chart.series.length; i++) {
series[i].setVisible(true, true);
}
chart.redraw();
});
标签:
原文地址:http://www.cnblogs.com/noobkey/p/5197842.html