since you're using jquery, have you tried simply emptying the container div as follows before redrawing the chart?


perhaps this would be more beneficial since chart.destroy() doesn't seem to be working in your case.


when .html() is used to set an element's content, any content that was in that element is completely replaced by the new content. additionally, jquery removes other constructs such as data and event handlers from child elements before replacing those elements with the new content.

Related Query

More Query from same tag