如何更换饼图使用achartengine API传说? [英] how to replace the legends of Piechart using achartengine API?

查看:111
本文介绍了如何更换饼图使用achartengine API传说?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Achartengine API绘制饼图。我正在逐渐饼图水平的底部显示的传说。但我想在饼图的右侧垂直显示。我听说它可以使用setMargins()方法来实现。如果我可以使用,请解释如何使用它。

I am Using Achartengine Api for drawing pie chart. I am getting the legends displayed at the bottom of the Pie chart horizontally. but I want to display it on the right side of the Pie chart vertically. I heard that it can be done using setMargins() method . if I can use that please explain how to use that.

感谢您提前。

推荐答案

setMargins() API调用,顾名思义,图表周围设置页边距。使用这个你不能移动的传说,你却不能与AChartEngine在所有移动图例。你可以将其隐藏。

The setMargins() API call is, as the name suggests, for setting the margins around the chart. You cannot move the legend using this and you actually cannot move the legend at all with AChartEngine. You can hide it.

这篇关于如何更换饼图使用achartengine API传说?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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