jjoe64 / GraphView

Android Graph Library for creating zoomable and scrollable line and bar graphs.
https://github.com/jjoe64/GraphView/wiki
Other
2.76k stars 811 forks source link

Limit the minimum and maximum range when setYAxisBoundsManual(false); #673

Open Hoel opened 3 years ago

Hoel commented 3 years ago

Hello, I would like to know how i should to to limit the minimum and maximum limit of the bounds (or set a minimum total range) for the Y axis when setYAxisBoundsManual(false), so the bounds are automatically calculated.

The reason why i need that is because when the sensor value is very stable then the bound are increasing and increasing until the noise variations are filling the whole graph, which is a problem because it gives a biased feedback (: the actual noise is very low but there is no limit to the auto-resize of bound so the graph shows huge variations).

I still need the auto bound function because the sensor range is large and thus if i set to manual bounds then the granulosity becomes insufficient once datas are stable and value is low.