麻烦轴AChartEngine中心奥里戈 [英] Trouble getting axis centered on Origo in AChartEngine

查看:233
本文介绍了麻烦轴AChartEngine中心奥里戈的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了麻烦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]:<一href=\"http://stackoverflow.com/questions/10979790/make-x-axis-in-vertical-center-using-achartengine\">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);

XYMultipleSeriesRenderer.patch 结果
XYChart.patch

这里是它如何可以看一个例子

And here is an example on how it may look

这篇关于麻烦轴AChartEngine中心奥里戈的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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