0

I'm building a regression visualiser and can plot the original data and calculate the regression model. For fitting, I'd like to include predictions for the whole chart axis range available, not only the original data range.

Creating the empty chart sets xAxis 0 to 110 by default.

Creating the chart

Then I'm plotting the data: enter image description here

How can I access the visible xAxis extreme values, and especially the upper 5.5?

Trying xAxis.getUpperBound gives the original 110.

  • See discussion on ScalaFX: https://github.com/scalafx/scalafx/discussions/338 – Jarek Mar 26 '21 at 23:43
  • Thank you. The problem actually was that the value didn't have time enough to be updated before my next command. The try of xAxis.getUpperBound was correct. – Gorgonzola45 Oct 26 '21 at 14:31

0 Answers0