您的位置:首页 > 产品设计 > UI/UE

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

2016-01-21 08:57 471 查看
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);
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: