ChartDirector Ver 3.1 (PHP Edition Edition)

Using Multiple Click Handlers


When creating image maps with BaseChart.getHTMLImageMap, all data points will use the same image map handler.

For example, in a pie chart, if the image map is generated using BaseChart.getHTMLImageMap with "piestub.php" as the handler, no matter which sector is clicked, the handler "piestub.php" is used. The different sectors are distinguished by different HTTP query parameters.

If for some reasons, it is desirable that different sectors use different handlers, the followings are some of the methods:

Although we use pie chart as an example above, the principles apply to other chart types as well.