Accessing auto ranged chart axis bounds

6 views
Skip to first unread message

Juho Immonen

unread,
Mar 26, 2021, 11:05:42 AM3/26/21
to ScalaFX Users
Hi! 

I'm plotting original data as scattered and a regression line into a ScalaFX LineChart. 

When I create an empty chart with autoranging, the x-axis is set to default from 0 to 110. When I plot the data of x ranging for example from 1 to 5 the axis is graphically adjusted to this containing slight margins (0 to 5.5). 

How can I access the updated extreme values of the x-axis? My xAxis.getUpperBound returns the original maximum of 110.

Kind regards,
Juho 

Juho Immonen

unread,
Mar 27, 2021, 5:01:29 AM3/27/21
to ScalaFX Users

This was already answered in the Github discussion, thanks.
Reply all
Reply to author
Forward
0 new messages