fix: chart not displaying the last value (temp) (#34)

This commit is contained in:
Florian Bouillon 2023-01-16 00:33:41 +01:00 committed by GitHub
parent 919cbaa823
commit 4cdace91ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ class XAxis(
override var x: Double = 0.0 override var x: Double = 0.0
set(value) { set(value) {
val max = getXMax() - getDataWidth() val max = getXMax()
val min = getXMin() val min = getXMin()
field = value.coerceIn(min, max.coerceAtLeast(min)) field = value.coerceIn(min, max.coerceAtLeast(min))