user1828433
user1828433

Reputation: 252

Change JavaFx chart origin

I created a JavaFX lineChart but when the values are too close I get something like : chart issue

instead of :

normal chart

How can I change the origin of the JavaFX chart dynamycally ?

Upvotes: 1

Views: 1131

Answers (1)

RDM
RDM

Reputation: 5066

The y axis and x axis are NumberAxis instances. You can setLowerBound and setUpperBound to change the range of the axes. setForceZeroInRange could also be interesting.

Upvotes: 4

Related Questions