Building HTML5 charts : Writing event handlers : Writing event handlers that respond to chart events : About the HTML5 chart events
 
About the HTML5 chart events
The set of events for an HTML5 chart is much smaller than the set of events for a BIRT chart. Table 12‑3 lists the HTML5 chart event functions and describes when they are called.
Table 12‑3 HTML5 chart event functions
Event function
Called
afterRendering(chart)
After the chart is rendered
beforeDrawAxis(axis, axisOptions, chart, axisIndex)
Before rendering each axis
beforeDrawDataPoint(point, pointOptions, chart, seriesIndex, pointIndex)
Before drawing each data point graphical representation or marker
beforeDrawSeries(series, seriesOptions, chart, seriesIndex)
Before rendering the series
beforeGeneration(options)
Before the chart is created
beforeRendering(options, chart)
Before the chart is rendered