diff --git a/chartfx-samples/src/main/java/io/fair_acc/sample/chart/RotatedAxisLabelSample.java b/chartfx-samples/src/main/java/io/fair_acc/sample/chart/RotatedAxisLabelSample.java index d434ed261..660bc7bd3 100644 --- a/chartfx-samples/src/main/java/io/fair_acc/sample/chart/RotatedAxisLabelSample.java +++ b/chartfx-samples/src/main/java/io/fair_acc/sample/chart/RotatedAxisLabelSample.java @@ -98,6 +98,7 @@ public Node getChartPanel(final Stage primaryStage) { private static DefaultNumericAxis getSynchedAxis(DefaultNumericAxis orig, String newAxisName) { final DefaultNumericAxis axis = new DefaultNumericAxis(newAxisName); + axis.setAutoRanging(false); axis.minProperty().bind(orig.minProperty()); axis.maxProperty().bind(orig.maxProperty()); axis.getTickLabelStyle().setRotate(orig.getTickLabelStyle().getRotate());