基于AChartEngine BARCHART多行标签 [英] Multiple Line Label in AChartEngine based BarChart
本文介绍了基于AChartEngine BARCHART多行标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我为Android编写,其中包含条形图的应用程序,条形图是通过使用AChartEngine API构建。 X轴标签是很长,重叠等标签,我想知道是否有可能在标签换行或有多个行的标签。我试图要通过API文档,但我发现没有答案,谷歌被证明是没有更好的。
I'm writing an application for Android which contains Bar Charts, The Bar Chart is built by using the AChartEngine API. The X axis label is quite long and overlaps the other labels, I was wondering if it is possible to have a line break in the label or have a multiple line label. I tried going through the API documentation but i found no answers and Google proves to be no better.
推荐答案
我能得到自定义文本标签多行标签。
I was able to get a multiline label with custom text label.
renderer.ShowCustomTextGrid = true;
renderer.AddXTextLabel (0, "first line \n second line");
这篇关于基于AChartEngine BARCHART多行标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文