简体   繁体   English

GraphView轴标签

[英]GraphView Axis Labels

I'm using GraphView to draw graphs in my android app, but I'm not able to set axis labels on the X and Y axis which denote what they represent. 我正在使用GraphView在我的android应用程序中绘制图形,但无法在X和Y轴上设置轴标签来表示它们所代表的内容。 I checked the documentation, but couldn't find anything useful. 我检查了文档,但找不到有用的东西。 How can I do it? 我该怎么做?

you're right. 你是对的。 there is no build in method to do it. 没有内置方法可以做到这一点。 You have to place your label views yourself at the left resp. 您必须将自己的标签视图放置在左侧。 bottom of the graphview. graphview的底部。 This can be done for example with RelativeLayout. 例如,可以使用RelativeLayout完成此操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM