首页 > 其他 > 详细

How to display values with in piechart using Jfreechart(values in sector )

时间:2016-01-21 09:11:33      阅读:132      评论:0      收藏:0      [点我收藏+]

I am using Jfreechart to create pie charts. Values are displayed outside pie chart as labels. I want to display the values within the pie sectors only. How can i achieve this. Please can any one help me.

Thanks in advance

 

Use setSimpleLabels(), as shown below; org.jfree.chart.demo.PieChartDemo1 is a good starting point.

PiePlot plot = (PiePlot) chart.getPlot();
plot.setSimpleLabels(true);

How to display values with in piechart using Jfreechart(values in sector )

原文:http://www.cnblogs.com/love540376/p/5147166.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!