Creating a Pie chart

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

Creating a Pie chart

Post by Guest » Thu Jul 21, 2005 3:26 pm

Hi I am trying to create two Pie charts with ChartFactory.createMutiplePiecharts() method and passing the boolean variable as false for the Tooltip in the method .But the tool Tip is still appearing. Here is the line of code which I am writing for it:

chart = ChartFactory.createMultiplePieChart("",dataset1,TableOrder.BY_COLUMN,true,false,false);

Another issue is I want to customize the chart image for Pie chart such that:

1. I want to hide the outline of the piechart
2. Legends for the pie chart should be of box shape instead of circular shapes.
3. I don't want to print the Shadow of the Pie chart.
4. I want to disable the label links.

Please let me know about how to customize the chart?

Thanks in Advance.

leo
Posts: 8
Joined: Thu Jul 21, 2005 1:54 pm

Creating a Pie chart - Please help

Post by leo » Fri Jul 22, 2005 5:46 am

Please let me knownif anyone has any idea about the following questions about Pie chart.

Thanks in Advance.

mhilpert
Posts: 497
Joined: Wed Apr 02, 2003 1:57 pm
Location: Germany

Re: Creating a Pie chart

Post by mhilpert » Fri Jul 22, 2005 1:46 pm

Anonymous wrote: 1. I want to hide the outline of the piechart
2. Legends for the pie chart should be of box shape instead of circular shapes.
3. I don't want to print the Shadow of the Pie chart.
4. I want to disable the label links.
1. plot.setOutlinePaint(null);
2. they are box shaped ... ?
3. piePlot.setShadowPaint(null);
4. piePlot.setLabelLinksVisible(false);
Java 11, JFreeChart 1.0.15, JFreeSVG 4.0

Locked