ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Chart Title with Tooltip
Posted by Dams on May-13-2012 23:54
Is there anyway to give tooltip to chart titles only?

  Re: Chart Title with Tooltip
Posted by Peter Kwan on May-15-2012 04:21
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

  Re: Chart Title with Tooltip
Posted by Dams on May-16-2012 20:53
Its working. Thanks for you Help.