Remove text on Pie3DChart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
superjma
Posts: 8
Joined: Sat Jun 14, 2003 12:15 pm

Remove text on Pie3DChart

Post by superjma » Sat Aug 23, 2003 7:36 pm

I have the problem that the text on the Chart is too large to fit the picture (JPG). But the text on the Chart isn't necessary, because the title for each color is described in the box under the chart (the parameter called legend in the docs for ChartFactory.createPie3DChart).

Therefore my plan is to remove the text on the chart, but I don't know how.

Hope someone can help me..

Regards

ksevern

Mee Too

Post by ksevern » Wed Aug 27, 2003 6:26 pm

I'm very interested in how this works as well. If anyone has the clue to this one, please let me know.

ksevern
Posts: 3
Joined: Wed Aug 27, 2003 6:28 pm

Found it

Post by ksevern » Fri Aug 29, 2003 7:51 pm

I found a way to do this. The method name is misleading. So I had trouble finding this as well. See the segments below:

JFreeChart chart = ChartFactory.createPie3DChart(...);
...
Pie3DPlot plot = (Pie3DPlot) chart.getPlot();
...
plot.setSectionLabelType(PiePlot.NO_LABELS)
;
...

Locked