mirror of
https://github.com/dzeiocom/charts.git
synced 2025-04-22 10:42:09 +00:00
fix: chart not displaying the last value (temp) (#34)
This commit is contained in:
parent
919cbaa823
commit
4cdace91ff
@ -20,7 +20,7 @@ class XAxis(
|
||||
|
||||
override var x: Double = 0.0
|
||||
set(value) {
|
||||
val max = getXMax() - getDataWidth()
|
||||
val max = getXMax()
|
||||
val min = getXMin()
|
||||
|
||||
field = value.coerceIn(min, max.coerceAtLeast(min))
|
||||
|
@ -91,4 +91,4 @@ sealed interface XAxisInterface {
|
||||
* return the height of the XAxis (available after first draw)
|
||||
*/
|
||||
fun getHeight(): Float?
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user