问题描述
我遇到了麻烦AChartEngine居中而不是让它们沿图表的左侧和底部上欧瑞实际可见的轴系。
I'm having trouble getting AChartEngine to center the actual visible axises on Origo instead of having them along the left- and bottom of the chart.
我需要有轴系像这样:
任何想法?
(这个问题是类似问题#2 [2]:Make使用AChartEngine 但我认为一个更具体的问题可能会得到一个答案)x轴垂直中心
(This question is similar to question #2 [2]: Make x-axis in vertical center using AChartEngine but I thought that a more specific question might get an answer)
推荐答案
我做了一些修改,以AChartEngine 1.0.0,以使其能够在小区的中央显示轴系。
使用下面code将轴系设置为中心。
I made some modifications to AChartEngine 1.0.0 to make it possible to display axises in the center of the plot.Use code below to set the axises to center.
XYMultipleSeriesRenderer.setXAxisAlign(Align.CENTER, 0);
XYMultipleSeriesRenderer.setYAxisAlign(Align.CENTER, 0);
结果
这里是它如何可以看一个例子
And here is an example on how it may look
这篇关于麻烦轴AChartEngine中心奥里戈的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!