title: JFreechart - vertical X-axis labels on an XYChart
body: <p>I have an XYLineChart, where the labels on the X axis are written horizontally.  I would like to be able to write them vertically (descending).</p>
  
  <p>I can already do this for BarCharts:</p>
  
  <pre><code>CategoryPlot plot = (CategoryPlot) chart.getPlot();
  final CategoryAxis domainAxis = plot.getDomainAxis();
  domainAxis.setCategoryLabelPositions(CategoryLabelPositions.DOWN_90);
  </code></pre>
  
  <p>but an XYChart returns an XYPlot, rather than a CategoryPlot, and the getDomainAxis() of an XYPlot returns a ValueAxis, not a CategoryAxis. ValueAxis lets me call </p>
  
  <pre><code>setVerticalTickLabels(true);
  </code></pre>
  
  <p>which is almost there!  But it draws them ascending, rather than descending.  Any way around this?</p>
  
  <p>Thanks,</p>
  
  <p>Edit: I need the domain axis to stay at the bottom of the chart.  Hadn't considered it being any other way when making the original post.</p>