title: JFreeChart: add custom string ticks on XYLineChart's axis
body: <p>My app is generating heavy XYLineCharts (> 180k data points) using JFreeChart.</p>
  
  <p>Each datapoint has a sequential number (from 1 to 185000) that is used for the X-axis ticks values (integer values, with auto-range):</p>
  
  <pre><code>plot.getDomainAxis().setStandardTickUnits(NumberAxis.createIntegerTickUnits());
  </code></pre>
  
  <p><br>
  So far it works great. Difficulty is now to add a X-axis tick with a custom value as I would like to add a X-axis label for the first and the last datapoint shown (I would like to show the first and the last datapoint production date - they are already sorted by chronologically).</p>
  
  <p>I spend a couple of hours searching: it seems that it is definitely not supported by JFreeChart. I also didn't find any hack for this (e.g. annotations can only be placed on the plot).</p>
  
  <p>Any pointer / idea on how to solve this would be greatly appreciated !</p>
  
  <p>Thomas</p>
  
  <p>PS: chart can zoom-in / zoom-out, hence the custom ticks need to be updated accordingly.</p>
  
  <p>PS2: using Category axis doesn't seem to be a solution as it doesn't automatically change the ticks range (I think)</p>