diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/Overview/graphData/GraphData.java b/app/src/main/java/info/nightscout/androidaps/plugins/Overview/graphData/GraphData.java index e551353915..109f6d3087 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/Overview/graphData/GraphData.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/Overview/graphData/GraphData.java @@ -611,8 +611,10 @@ public class GraphData { } } - graph.getViewport().setMaxY(Round.ceilTo(maxY, 1d)); - graph.getViewport().setMinY(Round.floorTo(minY, 1d)); + double step = 1d; + if (maxY < 1) step = 0.1d; + graph.getViewport().setMaxY(Round.ceilTo(maxY, step)); + graph.getViewport().setMinY(Round.floorTo(minY, step)); graph.getViewport().setYAxisBoundsManual(true); // draw it