PiePlot pp = (PiePlot)chart.getPlot();
pp.setLabelGenerator(new StandardPieSectionLabelG enerator("{2}"));
如果百分比要包括一位小数,则使用
pp.setLabelGenerator(new StandardPieSectionLabelG enerator("{2}",new DecimalFormat("0.0"),new DecimalFormat("0.0%")));
显示实际数值
PiePlot pp = (PiePlot)chart.getPlot();
pp.setLabelGenerator(new StandardPieSectionLabelG enerator("{1}"));