title: JavaFx Customzied CategoryAxis manual without useing AutoRanging
body: <p>I have a Chart which may have null value and also i want Fixing X-Axis Scale (ex.20 point).
  and the value binding to Y-Axis (not null value ex.10 value).</p>
  
  <p><img src="https://i.stack.imgur.com/bdl1A.png" alt="My desired Chart" title="Category X-Axis Fixed with null Y values"></p>
  
  <p>[Update]</p>
  
  <pre><code>String [] categories = {"32-11, 33-11, 34-11, 35-11, 36-11, 37-11, 38-11, 39-11, 40-11, 41-11, 42-11, 43-11, 44-11, 45-11, 46-11, 47-11, 48-11, 49-11, 50-11, 51-11"};
  LineChart&lt;String, Number&gt; myChart;
  CategoryAxis xAxis;
  NumberAxis yAxis;
  
  yAxis = new NumberAxis();
  xAxis = new CategoryAxis();
  xAxis.setCategories(FXCollections.&lt;String&gt;observableArrayList(Arrays.asList(categories))); 
  xAxis.setAutoRanging(false);
  
  myChart = new LineChart&lt;String, Number&gt;(xAxis,yAxis);
  
      Series&lt;String, Number&gt; aSeries = new Series&lt;String, Number&gt;();
      for (int i = 0; i &lt; categories.length; i++) {
          aSeries.getData().add(new XYChart.Data(categories[i],"Some Long values and may be null"));
      }
  
  myChart.getData().add(aSeries);
  </code></pre>
  
  <ul>
  <li>Chart draw Nothing</li>
  <li>//xAxis.setAutoRanging(false); Chart draw but with auto range.</li>
  </ul>