如何显示在Android中使用AChartEngine轴线上方x轴的标签? [英] How to display x-axis label above the axis using AChartEngine in Android?

查看:265
本文介绍了如何显示在Android中使用AChartEngine轴线上方x轴的标签?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要像上面创建图形。
在该曲线图中的标题是在上面。用户可以选择特定时间以查看更多细节。
如何显示使用AChartEngine或Android任何其他图形API轴之上这个X轴的标签?

I want to create graph like above. In this graph titles are on top. User can select particular time to view more detail. How to show this X-axis labels on top of axis using AChartEngine or any other graph api for android?

推荐答案

您可以使用标注,这是文字的标签,可以在任何地方在图中放置的位置。

You can use annotations, which are text labels that can be placed anywhere in the graph.

series.addAnnotation("Vacation", 6, 30);

这篇关于如何显示在Android中使用AChartEngine轴线上方x轴的标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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