How to generate Tooltip For Bar Chart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
agohar
Posts: 7
Joined: Tue Mar 28, 2006 4:07 pm

How to generate Tooltip For Bar Chart

Post by agohar » Wed Mar 29, 2006 12:01 pm

Hi,

I have created a bar chart using JFreeChart library, how can i add the Tool Tip for each bar? I have tried to set the tooltip generator in renderer, but it is not displaying the tooltip.

Note: I am displaying the bar chart in Applet.

Can anyone help??

sachinkt
Posts: 5
Joined: Thu Apr 06, 2006 1:31 pm

Post by sachinkt » Thu Apr 06, 2006 1:49 pm

try this

JFreeChart chart = ChartFactory.createBarChart("", "", "", dataset, PlotOrientation.VERTICAL, true, true, true);

m.ibbrahim
Posts: 3
Joined: Mon Aug 14, 2006 1:35 pm

Re: How to generate Tooltip For Bar Chart

Post by m.ibbrahim » Mon Aug 14, 2006 1:43 pm

agohar wrote:Hi,

I have created a bar chart using JFreeChart library, how can i add the Tool Tip for each bar? I have tried to set the tooltip generator in renderer, but it is not displaying the tooltip.

Note: I am displaying the bar chart in Applet.

Can anyone help??
Hey,

Is your problem solved..??? :roll: i m also gettin the same problem.. but somehow managed to generate the ToolTip..however, it's not working as expected..
Can you share how you did that..???

MIB

Locked