AChartEngine Scroll Area

2019-08-30 18:39发布

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.

1条回答
可以哭但决不认输i
2楼-- · 2019-08-30 19:22

Try using setPanLimits() method ..

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

where mRenderer2 is XYMultipleSeriesRenderer .

查看更多
登录 后发表回答