From 51d0c9acf82b4641c5531289e572f8a10cd1716c Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Thu, 24 Mar 2022 18:32:58 +0100 Subject: [PATCH] fix ActivityGraph Y axis --- .../nightscout/androidaps/plugins/insulin/ActivityGraph.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/insulin/ActivityGraph.kt b/app/src/main/java/info/nightscout/androidaps/plugins/insulin/ActivityGraph.kt index c7f66ef4eb..7662100e49 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/insulin/ActivityGraph.kt +++ b/app/src/main/java/info/nightscout/androidaps/plugins/insulin/ActivityGraph.kt @@ -44,6 +44,9 @@ class ActivityGraph : GraphView { viewport.isXAxisBoundsManual = true viewport.setMinX(0.0) viewport.setMaxX((hours * 60).toDouble()) + viewport.isYAxisBoundsManual = true + viewport.setMinY(0.0) + viewport.setMaxY(0.01) gridLabelRenderer.numHorizontalLabels = (hours + 1).toInt() gridLabelRenderer.horizontalAxisTitle = "[min]" secondScale.addSeries(LineGraphSeries(Array(iobArray.size) { i -> iobArray[i] }).also {