Image URL

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

Image URL

Post by Mahesh » Thu Jan 23, 2003 6:09 pm

Hi,

I am trying to create image map in HTML for Vertical Bar CHART image. is there any way to get coordinates of catgeory bars?

Thanks

Grant Smiley

Re: Image URL

Post by Grant Smiley » Thu Jan 23, 2003 10:13 pm

depending on what you want to do, the Atkins demo linked on the main page is a great example of how to generate tool tips that use a generated image map. I've never tried this specifically, but that combined with the get functions in the Series classes should get you there. I'd first try and use the tooltips map, and then look at how to add additional coordinates you might want.

Hope this helps, I've been using this for less than one week and might be totally off base.

G

David Gilbert

Re: Image URL

Post by David Gilbert » Fri Jan 24, 2003 10:12 am

Hi Mahesh,

Grant has pointed you in the right direction. Richard Atkins has done some excellent work on the image map and tooltip code in JFreeChart. You should take a look at his demo, and the writeImageMap(...) methods in the ChartUtilities class, and the ImageMapDemo1, 2 and 3 files in the src/com/jrefinery/chart/demo directory of the distribution.

Regards,

Dave Gilbert

Locked