MPAndroidChart icon indicating copy to clipboard operation
MPAndroidChart copied to clipboard

Zooming/Scaling in realtime chart: fix y-axis

Open KR51K opened this issue 3 years ago • 2 comments

Hello,

I have a "realtime" chart where I add a new sample every second. If I now zoom into this chart and a new datapoint is added, the x position of the chart does not change (as I expected), but the y-axis changes (or the current visible range). And after this shift sometimes even no point is visible any more in the displayed range. Is there a function to inihibit autoscale or whatelse causes this behaviour?

KR51K avatar Mar 21 '22 04:03 KR51K

I have this problem too. If somebody fix this, tell me please.

IharPrykhodzka avatar Mar 28 '22 08:03 IharPrykhodzka

Try it :setVisibleXRangeMinimum() image

y453190368 avatar May 05 '22 03:05 y453190368