如何当我使用图表引擎的机器人在饼图设置传说不同的价值观和标签 [英] How to set different values for Legend and Labels in piechart While I am using Chart Engine in android

查看:111
本文介绍了如何当我使用图表引擎的机器人在饼图设置传说不同的价值观和标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我现在用的图表引擎来显示android.In饼图我的code我想说明的标签和区域对应于legend.But,淡水河谷,我无法获取one.Please能值任何一个可以帮助me.Thanks提前。

Hi I am using A chart Engine to display pie chart in android.In my code I want to show values on labels and area corresponding to that vale on legend.But I am unable to get that one.Please can any one helps to me.Thanks in advance.

我要象下面

推荐答案

显示,独立值馅饼标签从图例标签是不可能在AChartEngine。

Displaying the pie labels with separate values from the legend labels is not possible in AChartEngine.

不过,你可以在每片中间显示扇形值(年龄你的情况),使用:

However, you can display the pie slice value (age in your case) in the middle of each slice, using:

renderer.setDisplayChartValues(true);

有没有在code,这是当标签没有显示preventing显示图表值的错误。我刚才已经解决了这个问题,在SVN。您可以根据页面并运行检出code为了一个蚂蚁DIST 来最新achartengine.jar文件包括此修复程序构建。

There was a bug in the code that was preventing displaying the chart values when the labels were not displaying. I have just fixed this issue in SVN. You can checkout the code according to this page and run an ant dist in order to build an up to date achartengine.jar file including this fix.

这篇关于如何当我使用图表引擎的机器人在饼图设置传说不同的价值观和标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆