Not sure if this is for all chart types, i'm using a scatterchart and when my x axis is a NumberAxis I can use the ticklabelrotation method, but when it is a CategoryAxis I can still use the method but it doesn't show on the plot itself. seems to be overridden by internal smarts to show text horizontally or vertically.
to be clear
javafx.scene.chart.CategoryAxis;
javafx.scene.chart.NumberAxis;
javafx.scene.chart.ScatterChart;
example usage
ScatterPlot.getYAxis().setTickLabelRotation(75);
ScatterPlot.getXAxis().setTickLabelRotation(75);
to be clear
javafx.scene.chart.CategoryAxis;
javafx.scene.chart.NumberAxis;
javafx.scene.chart.ScatterChart;
example usage
ScatterPlot.getYAxis().setTickLabelRotation(75);
ScatterPlot.getXAxis().setTickLabelRotation(75);
- relates to
-
JDK-8087384 [CategoryAxis] perpendicular label rotation is used too late when labels already have some rotation
- Open