Tooltip on VerticalBarChart

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

Tooltip on VerticalBarChart

Post by Zhi Shen » Fri Jun 28, 2002 5:29 pm

Hi,

How do you get the tooltip to show the data when using CategoryItemEntity class when working on imagemaps? Or how do you access the data from that class?

JFreeChart 0.9.2

Thanks,
zhi

David Gilbert

Re: Tooltip on VerticalBarChart

Post by David Gilbert » Sun Jun 30, 2002 8:35 pm

Hi Zhi,

I'm not completely sure how you want to incorporate the information into an image map, but the CategoryItemEntity class inherits a method getToolTipText() from the ChartEntity class. You could use that or call the getCategory() method and the getSeries() method (to work out which item you are looking at) then generate your own text directly from the data.

Regards,

DG.

Locked