AChartEngine滚动区域 [英] AChartEngine Scroll Area

查看:202
本文介绍了AChartEngine滚动区域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么办法来限制AChartEngine的滚动区域?我统计的一个团队,其中X轴再presents时间,Y轴再presents得分曲线图,它没有任何意义产生消极的那么多。我想让这个最远,用户可以向下滚动并向左将使原点在屏幕的左下角。我AP preciate任何帮助。

Is there any way to limit the scroll area of AChartEngine? I have a graph of stats for a team where the X-axis represents time and the Y-axis represents score and it doesn't make sense to have negative for either. I'd like to make it so that the farthest that the user can scroll down and to the left would put the origin in the bottom left corner of the screen. I appreciate any assistance.

推荐答案

尝试使用setPanLimits()方法..

Try using setPanLimits() method ..

double[] panLimits={0,10,0,50}; // [panMinimumX, panMaximumX, panMinimumY, panMaximumY] 
mRenderer2.setPanLimits(panLimits);

其中, mRenderer2 XYMultipleSeriesRenderer

这篇关于AChartEngine滚动区域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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