Called when an event occurs on the chart
external void beforeEvent(Chart chartInstance, Event event);