title: JavaFX Charting - CategoryAixis Resize Issue
body: <p>I have a user-resizable chart. When the chart gets smaller the CategoryAxis rotates and you can no longer see most of the category labels. Here is a gif showing the problem:</p>
  
  <p><a href="https://i.stack.imgur.com/FjR3w.gif" rel="noreferrer"><img src="https://i.stack.imgur.com/FjR3w.gif" alt="Example of Issue"></a></p>
  
  <p>Is there any way to stop the labels from rotating? </p>
  
  <p>I know I can add a listener to the rotation property and rotate it back to 0 if the rotation changes. However, when I do that it doesn't prevent the spacing from adjusting, so the labels just get cut off (you only see the last few characters of the label).</p>
  
  <p>Here is the code for the included gif, you'll see the problem as you resize the window:</p>
  
  <pre><code>import javafx.application.Application;
  import javafx.scene.Scene;
  import javafx.scene.chart.BarChart;
  import javafx.scene.chart.CategoryAxis;
  import javafx.scene.chart.NumberAxis;
  import javafx.scene.chart.XYChart;
  import javafx.stage.Stage;
  
  public class HorizontalBarExample extends Application {
      @Override
      public void start(Stage stage)  {
          NumberAxis xAxis = new NumberAxis();
          CategoryAxis yAxis = new CategoryAxis();
          BarChart&lt;Number, String&gt; bc = new BarChart&lt;Number, String&gt;(xAxis, yAxis);
          bc.setBarGap(0d);
          bc.setCategoryGap(0);
  
          xAxis.setTickLabelRotation(90);
          yAxis.tickLabelRotationProperty().set(0d);
  
          XYChart.Series&lt;Number, String&gt; series1 = new XYChart.Series&lt;&gt;();
          series1.setName("example");
  
          for (int i = 0; i &lt; 10; i++)
              series1.getData().add(new XYChart.Data&lt;Number, String&gt;(Math.random() * 5000, "long data label number" + i));
  
          bc.getData().add(series1);
  
          Scene scene = new Scene(bc, 800, 600);
          stage.setScene(scene);
          stage.show();
      }
  
      public static void main(String[] args)  {
          launch(args);
      }
  }
  </code></pre>