Pie Chart Tooltips

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

Pie Chart Tooltips

Post by Laser » Wed Jun 30, 2004 11:10 am

Hi Guys,
Ican't get rid of the PieChart's tooltips for some reason .
my code goes like this:
JFreeChart chart = ChartFactory.createPieChart (null,pieDataset,true, false,false);

Note the false at the tooltip area

Thanks.

richard_atkinson
Posts: 115
Joined: Fri Mar 14, 2003 3:13 pm
Location: London, England
Contact:

Getting rid of labels

Post by richard_atkinson » Wed Jun 30, 2004 1:10 pm

Do you mean the ToolTips or the Labels? If it is the labels you are trying to get rid of try

Code: Select all

PiePlot plot = (PiePlot) chart.getPlot();
plot.setLabelGenerator(null);
Regards,
Richard...

Laser

Works

Post by Laser » Thu Jul 01, 2004 5:10 pm

Thanks,
It Works
:shock:

Steve
Posts: 53
Joined: Mon Dec 22, 2003 8:29 pm

Post by Steve » Thu Jul 01, 2004 8:42 pm

Tooltips = mouseover popup, displays slice values
Labels = built into the image, displays slice values.

Locked