Hi Dams,
There is an example "Custom Clickable Objects" (you may look it up from the ChartDirector documentation index) that demostrates how to create image map for adding tooltips to the line, title, legend entries, custom marks. I have extracted the part that creates the image map for the title below:
.....
//This is the title
ChartDirector.TextBox title = c.addTitle("Monthly Revenue for Year 2000/2001",
"Times New Roman Bold Italic", 15, 0xffffff);
....... create chart as usual and output the chart .....
//Image map for the title only
String myImageMap = "<area " + title.getImageCoor() + " title='this is my tooltip'>";
You can then use the imageMap in HTML or the ChartViewer for the tooltip.
Hope this can help.
Regards
Peter Kwan |