jfreechart饼图设置Label为百分比的方法
jfreechart-1.0.1中设置饼图默认的Label是传入的数值,但往往我们想显示的是Label的百分比,如何设置值为“n%”呢?在旧包里是可以直接设置的,而jfreechart-1.0.1包把设置放到了StandardPieSectionLabelGenerator.java的构造方法里面了。
具体设置如下:
JFreeChart chart = ChartFactory.cr...
原创
2012-07-19 19:16:06 ·
485 阅读 ·
0 评论