Writing Image Map information

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Guest

Writing Image Map information

Post by Guest » Fri May 13, 2005 4:21 pm

Hi all,

I have been trying to find the way to customize OverLib tooltip text and href information using JFreeChart

like below
<AREA SHAPE="rect" COORDS="167,423,180,437" alt="" href="myLink.html" onmouseover="return overlib('my tooltip text');" onmouseout="return nd();">

I have gone through many articles and jfreechart docs on (ChartRenderingInfo, ChartUtilities.writeImageMap etc.) but haven't been able to find a way so far.

Any help with this will be greatly appreciated.

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Fri May 13, 2005 4:46 pm

The URL is generated by a class that implements the XYURLGenerator interface - you can write your own custom class and install it with the renderer using setURLGenerator().

Exactly the same approach is used for the tooltip text - see the XYToolTipGenerator interface and the setToolTipGenerator() method in the renderer.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

deepika
Posts: 13
Joined: Fri May 13, 2005 2:00 pm

Post by deepika » Tue May 17, 2005 9:44 pm

Thanks Dave, That was very helpful. It works now.
Thanks & Regards,
Deepika

deepika
Posts: 13
Joined: Fri May 13, 2005 2:00 pm

Specifying URL link based on series in stacked area chart

Post by deepika » Tue May 17, 2005 11:56 pm

Hi,

Can someone please tell me how to set the URL link based on series in a Stacked area chart. I tried with

renderer.setSeriesItemURLGenerator()
renderer.setSeriesToolTipGenerator()

but no luck.
Thanks & Regards,
Deepika

Locked