Example showing an alert on BeforeDispose event. Click 'Dispose Chart' button to dispose the chart.
The above sample showcases how to listen to BeforeDispose event using JavaScript. Click here to know more on how the code of this example works.