score:2

Accepted answer

I looked that your question here for your code. The problem is that you aren't updating your chart when your series type changes but instead you are re-creating the whole chart. Anything drawn on it or zoom options that have been changed will not be preserved. So, instead of re-creating the chart, just update it. For instance to change the series type do:

Highcharts.charts[0].series[0].update({'type':type}); // set the first series to a type

See this fiddle example.


Related Articles