highslide-software/highcharts.com — Issue #503: Chart redraw fails when series is hidden
Author: nbhatia
Created: 2011-10-17 22:06:03+00:00
State: open

When a series is hidden using the legend, chart redraw fails with the following error:

Property 'destroy' of object #<Object> is not a function

I have created a jsFiddle to demonstrate the issue: http://jsfiddle.net/nareshbhatia/mBHz7/

Steps to reproduce:

1. Hide a series by clicking on a legend

2. Switch the financial sector by clicking on any sector in the list on the top. Chart should change.

3. Click on another sector. You will see that the chart is frozen.

There is a workaround for this issue (see commented section in the switchSector function). However, this code should work without the workaround.