fix ActivityGraph Y axis
This commit is contained in:
parent
ea995f705a
commit
51d0c9acf8
1 changed files with 3 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue