I want to change the label text of a pie chart.
So I created a pie chart and set the LabelGenerator.
Code: Select all
JFreeChart chart = ChartFactory.createPieChart(title, dataset, legend, tooltips, urls);
((PiePlot) chart.getPlot()).setLabelGenerator(new StandardPieSectionLabelGenerator("{0} = {1}"));
I also created a theme. Maybe this is making problems?
Freechart version: 1.0.19
JRE: jdk1.6.0_45
Thank you for your answers.