Example of OnChartEvent() Function