我JFreeChart用来创建饼图.值在饼图扇区外显示为标签.我想在饼图扇区中显示值.我怎样才能做到这一点.请任何人帮帮我吗?
tra*_*god 11
使用setSimpleLabels(),如下图所示; org.jfree.chart.demo.PieChartDemo1是一个很好的起点.
PiePlot plot = (PiePlot) chart.getPlot();
plot.setSimpleLabels(true);
Run Code Online (Sandbox Code Playgroud)