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
Thanks in advance
Use
setSimpleLabels(), as shown below;
org.jfree.chart.demo.PieChartDemo1is a good starting point.
PiePlot plot = (PiePlot) chart.getPlot(); plot.setSimpleLabels(true);
相关文章推荐
- 一个简易的具有点击方法的UIImageView的封装
- HDU 4914 Linear recursive sequence(矩阵乘法递推的优化)
- leetcode笔记:Range Sum Query - Mutable
- UI篇之拳皇
- The server quit without updating PID file
- 用Mysql5.6出现时间问题Incorrect datetime value: '' for column 'createtime'
- UX Design.如何从设计模式中学习交互设计
- how to build java project using gradle
- IOS UIButton用法详解
- IOS博客项目搭建-02-自定义底部导航控制器UITabBarController
- UITextField中放置图片
- UIButton加下划线
- PyQuery库使用小结
- Greedy:Subsequence(POJ 3061)
- UIPageControl和NSTimer的使用
- leetcode笔记:Range Sum Query - Immutable
- 第五天,uiscorllview的滚动和缩放,以及代理调用,定时器,对话框
- UVA 822 Queue and A
- G面经prepare: Maximum Subsequence in Another String's Order
- iOS UITableView(十四) 设置TbleviewController的滚动范围