How to display x-axis label above the axis using AChartEngine in Android?

ε祈祈猫儿з 提交于 2019-12-13 04:23:35

问题


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?


回答1:


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

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


来源:https://stackoverflow.com/questions/17545194/how-to-display-x-axis-label-above-the-axis-using-achartengine-in-android

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