Accessing ScalaFX chart axis extreme values

27 views Asked by At

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.

0

There are 0 answers