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
Remove text on Pie3DChart
Found it
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);
...
JFreeChart chart = ChartFactory.createPie3DChart(...);
...
Pie3DPlot plot = (Pie3DPlot) chart.getPlot();
...
plot.setSectionLabelType(PiePlot.NO_LABELS);
...