score:1

Accepted answer

You need to show series and redraw a chart. The most efficient way is to use the setVisible method on each series with redraw argument set to false and call chart.redraw() outside the loop.

   $('#All').click(function() {
     Highcharts.each(chart.series, function(s, i) {
       s.setVisible(true, false);
     });

     chart.redraw();
   });

Live demo: https://jsfiddle.net/BlackLabel/eztvoqa4/

API Reference:

https://api.highcharts.com/class-reference/Highcharts.Chart#redraw

https://api.highcharts.com/class-reference/Highcharts.Series#setVisible


Related Query

More Query from same tag