AcharTengine滚动区[英] AChartEngine Scroll Area

本文是小编为大家收集整理的关于AcharTengine滚动区的处理方法,想解了AcharTengine滚动区的问题怎么解决?AcharTengine滚动区问题的解决办法?AcharTengine滚动区问题的解决方案?那么可以参考本文帮助大家快速定位并解决问题,译文如有不准确的地方,大家可以切到English参考源文内容。

问题描述

有没有办法限制Acharengine的滚动区?我对x轴表示时间和y轴表示分数的团队有一个统计数据图表,并且它没有有意义的是.我想制作它,使用户可以向下滚动和左侧滚动的最远将使屏幕左下角的原点放在屏幕的左下角.我感谢任何帮助.

推荐答案

尝试使用setPanlimits()方法..

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

mRenderer2是XYMultipleSeriesRenderer.

本文地址:https://www.itbaoku.cn/post/157827.html

问题描述

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.

推荐答案

Try using setPanLimits() method ..

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

where mRenderer2 is XYMultipleSeriesRenderer .

查看更多