改变AChartEngine传说大小 [英] Changing the legend size in AChartEngine

查看:242
本文介绍了改变AChartEngine传说大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想专门只改变传说尺寸输出的饼图。我已经尝试了所有方法,我可以找到AChartEngine,但他们都只是更改图例文本大小。我一定要重写OnDraw函数?如果是这样,怎么样?

I would like to specifically change only the legend size outputting for a Pie Chart. I've tried all methods I can find for AChartEngine, but none of them only change the legend text size. Do I have to override the onDraw function? If so, how?

推荐答案

有关设置传说高度用途:

For setting the legend height use:

renderer.setLegendHeight(height);

您也可以有传说只需要确切的空间需要:

You can also have the legend take only the exact space it needs:

renderer.setFitLegend(true);

要更改图例文字大小:

renderer.setLegendTextSize(textSize);

这篇关于改变AChartEngine传说大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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