Listening to chart events
To meet our immediate purpose of adding interactive functionalities that we have planned for the audit report page, we will require a set of HTML form controls such as buttons and drop-down lists to appear below the chart. We will keep these items initially hidden and show them after the chart is completely visible. This ensures that these items always have an actual chart to work with.
For this to happen, we will need the help of chart events.
There are several events that are raised by FusionCharts during the lifetime of the chart on a page. These events, such as the chart completing its loading process or the chart not being able to load data, may be of interest to you. You might want to perform some action when such events occur. Each of these events have a unique name and FusionCharts provides two mechanisms for intercepting and reacting to them:
The simple event model
The advanced event model
The simple event model
In the simple event model, whenever an event occurs...