How can I hide all series in tall charts at the same time?

I want to hide all series in one go, so far I use $ .each to hide all series one after another, but it worsens the performance that I want to hide all in one go ... is there another way ..? I tried this.

$.each(series, function(index, series1) { series1.hide(); }); 
+7
source share
1 answer

Instead of .hide use .setVisible(false, false) . This will not lead to redrawing after each hide operation.

 $(chart.series).each(function(){ //this.hide(); this.setVisible(false, false); }); chart.redraw(); 

See fiddle .

+17
source

All Articles