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.
Writing Image Map information
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
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.
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
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


Specifying URL link based on series in stacked area chart
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.
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
Deepika