I "stole" the code here to have AreaChartwith the "smooth lines" that I use in my FXML, and this works:
<SmoothedAreaChart fx:id="chart" legendVisible="false"
title="Tree depth by line" animated="false">
<xAxis>
<NumberAxis fx:id="xAxis" tickUnit="1.0" autoRanging="false"
minorTickVisible="false" forceZeroInRange="false"
label="Line number"/>
</xAxis>
<yAxis>
<NumberAxis fx:id="yAxis" minorTickVisible="false"
tickUnit="1.0" forceZeroInRange="true" label="Tree depth"/>
</yAxis>
</SmoothedAreaChart>
The problem that I have, however, is related to the Y axis.
I installed tickUnitin 1.0because I want, well, integral units, but this does not quite work:

If in the definition yAxisI set autoRangingto false, then the graph is cropped (I set the upper border manually when I fill the graph):

And, well, too many checkmarks.
Basically, I would like the behavior of both:
- what is happening authorization
- but that labels are always integers.
, / Axis, ?