Chapter 11. Working with Chart Event Handlers

BIRT supports an event handler model for the Chart Engine. The model is similar to the model for standard BIRT report elements and supports both the Java and JavaScript environments. This chapter provides details on both averments. The Chart Engine also supports this event model when used outside of BIRT.

Chart events overview

A chart is a graphical representation of data. A chart event occurs before, during, or after the drawing of a chart. Table 11-1 lists the chart event handler methods and describes when these methods are called.

Table 11-1. Chart event handler methods

Method

Called

afterDataSetFilled(Series series, DataSet dataSet, IChartScriptContext icsc)

After populating the series data set

afterDrawAxisLabel(Axis ...

Get Integrating and Extending BIRT now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.