码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2016-01-21 09:14:27      阅读:130      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!