Changing the legend size in AChartEngine

有些话、适合烂在心里 提交于 2019-12-22 08:38:18

问题


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?


回答1:


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);

To change the legend text size:

renderer.setLegendTextSize(textSize);



回答2:


To change the value of chart renderer.setChartValuesTextSize(textSize);



来源:https://stackoverflow.com/questions/17818945/changing-the-legend-size-in-achartengine

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!