Using Dispose Function. Click button below the chart to dispose the chart.
The above sample showcases how to use dispose function in JavaScript. Click here to know more on how the code of this example works.