问题
I am am going to make a app where i want to create a xy graph. AchartEngine API looks very attractive to me. I have seen all their examples and demos, Searched their forum but cant figure it out that if it can able to match my requirements.
So here is my question: I want a xy graph where:
- Make the graph non scrollable. (Pending)
- Make the x-axis vertically center as shown in image. (Pending)
- Show labels only on x-axis. (Pending)
The Second Question is most important to me. Can some holly sole suggest me whether aChartengine do the required job.
http://s16.postimage.org/bqcewws4l/graph.png
回答1:
Everything is possible with AChartEngine :)
Question #1:
renderer.setPanEnabled(false, false);
renderer.setZoomEnabled(false, false);
Question #2: You can control this by setting the yaxis min and max. They have to be such way chosen that 0 is in the middle. Example:
renderer.setYAxisMin(-10);
renderer.setYAxisMax(10);
Question #3:
renderer.setYLabels(0);
来源:https://stackoverflow.com/questions/10979790/make-x-axis-in-vertical-center-using-achartengine