Using addEventListener function to listen to Rendered event of the chart and show an alert
The above sample showcases how to use addEventListener function in JavaScript. Click here to know more on how the code of this example works.