amcharts

How to delete an amCharts Chart


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.


Solution

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

    chart.clear();
    

    and then null the chart variable:

    chart = null;