Join Slack
Powered by
Hi, what should be the conventional way to truncat...
# tornadofx
y
Yardenavirav
01/26/2020, 9:14 PM
Hi, what should be the conventional way to truncate the empty part of the chart? like below. I tried to play with invalidateRange but it didn't seemed to affect and i'm not sure if there is something simpler. Thanks
a
Arthur
01/27/2020, 1:56 PM
You probably can just use the setForceZeroInRange() method (or property) together with autoRange to achieve this.
https://docs.oracle.com/javase/8/javafx/api/javafx/scene/chart/NumberAxis.html#setForceZeroInRange-boolean-
y
Yardenavirav
01/27/2020, 4:13 PM
@Arthur
thanks for that! exactly what I needed.
👍 1
10
Views
Open in Slack
Previous
Next