Dread
Dread

Reputation: 55

JavaFX lineChart can't do a geometric figure

I need to do a geometric figure in a LineChart like this : enter image description here

The problem is to connect 1 to 2 (in the descending way). For now, I use a series for the top of the figure and another one for the bottom, but it will be better to just use one series for all, someone have an idea?

Upvotes: 0

Views: 24

Answers (1)

Dread
Dread

Reputation: 55

Just find the solution, you can change the sorting of the lineChart with setAxisSortingPolicy and put it to SortingPolicy.NONE, it will work after

Upvotes: 1

Related Questions