ChartDirector 7.0 (Java Edition)

Introduction to Clickable Charts


ChartDirector uses HTML image maps, comprises of <AREA> tags, to define "hot spots" on the charts. A hot spot is region on an image that acts like a hypertext (the &;lt;A> tag). It can be used as hypertext links, display tooltips, and can have mouse or touch events. Many of the ChartDirector code examples use image maps for tooltip purposes only, with the URL empty. If the URL is non-empty, when the hot spot is clicked, the browser will navigate to the URL.

ChartDirector can generate image maps for the data representation on the chart (bars for bar charts, sectors for pie charts, areas for area charts, etc.), for the legend keys, title boxes, custom text boxes and axis labels. This allows these objects to be clickable. As the HTML image map is a text string, you can append your own <AREA> tags to the image map to define custom hot spots on the chart.