Tool Tips Problem

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
ann04
Posts: 3
Joined: Mon Nov 15, 2004 6:52 pm

Tool Tips Problem

Post by ann04 » Mon Nov 15, 2004 6:57 pm

Hello,
I do not want tool tips generated in my pie chart. But for some reason the code below does not work?

PiePlot3D plot=(PiePlot3D) chart.getPlot();
plot.setToolTipGenerator(null);

What am I doing wrong?

Thank you.

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 » Mon Nov 15, 2004 9:42 pm

Some very old code in the PiePlot3D class is creating a default tooltip generator when the current setting is null. I will remove that code for the next release, so null means no tooltips as you would expect.
David Gilbert
JFreeChart Project Leader

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

ann04
Posts: 3
Joined: Mon Nov 15, 2004 6:52 pm

Post by ann04 » Mon Nov 15, 2004 10:32 pm

Hello Mr.Gilbert,

Can please point where this old code creates the default tooltip generator when the current string is null? Is it possible for me to correct it and recompile that class? Will that work?

When do you plan to release the next version?

Thank you.

Locked