I have a "desing" question:
Using the code below, JFreeChart generates the chart correctly, no problem.
How do I control (if is possible) the amount of space destinated to the plot area and legend area ?
My problem is that a have to many itens to be plotted. So, the legend become to big. Sometimes, the legend is bigger than the plot area.
What I want to do, is to fix the plot area, lets say in 40% of the total height amount.
I am saying that, because when these kind of situation occurs, JFreeChart increases the legend and reduces the plot area. It do this because it needs to respect the height (in the case below 450).
Another soluction is to define the width of the chart, but not its height. So, when JFree generates the chart, it will use all the space that it needs.
Is it possible ?
TIA,
Bob - Brazil
--------------------------
JFreeChart chart = ChartFactory.createPieChart("Chart Title", myDefaultPieDataset, true);
PiePlot pp = (PiePlot)chart.getPlot();
pp.setSectionLabelType(3);
pp.setSectionLabelFont(new Font("Arial", Font.PLAIN,

pp.setInteriorGapPercent(0.30);
pp.setCircular(true);
StandardLegend legend = (StandardLegend)chart.getLegend();
legend.setItemFont(new Font("Arial", Font.PLAIN,

TextTitle titulo = (TextTitle)chart.getTitle(0);
titulo.setFont(new Font("Arial", Font.BOLD, 12));
BufferedImage imagePrioridade = chart.createBufferedImage(250, 450);
ImageIO.write(image, "jpeg", new File("grafico.jpeg"))
--------------------------