How to delete an amCharts Chart

user3413723 picture user3413723 · Feb 4, 2015 · Viewed 13.9k times · Source

I'm using the free version of AmCharts, and I have a simple question - how do you delete a Chart after it has been loaded? I've searched the internet, but haven't come up on much.

Answer

zeroin picture zeroin · Feb 5, 2015

If you want to destroy the chart object, at all, call:

chart.clear();

and then null the chart variable:

chart = null;