updated chart_event example