title: How to render Date Values on X Axis of LineChart in 2 Lines using JFreeChart?
body: <p>I am using JFreeChart to render a LineChart using CategoryPlot.
  Something like:</p>
  
  <pre><code>JFreeChart chart = ChartFactory.createLineChart("Daily Revenue",
                  "Days", "Revenue", dataset);
  
          CategoryPlot plot = chart.getCategoryPlot(); 
  </code></pre>
  
  <p>So as you can understand I must have to display full Time like <code>23 Feb'18 11:00:00</code> on the XAxis tilted to 45degrees which I am able to achieve using</p>
  
  <pre><code>CategoryAxis categoryAxis = chart.getCategoryPlot().getDomainAxis();
  categoryAxis.setCategoryLabelPositions(CategoryLabelPositions.UP_45);
  </code></pre>
  
  <p>But I want to display my text on XAxis in 2 lines somewhat like:</p>
  
  <pre><code>23 Feb'18 
  11:00:00
  </code></pre>
  
  <p>tilted to 45 degrees. For which I had tried using </p>
  
  <pre><code>CategoryAxis categoryAxis = chart.getCategoryPlot().getDomainAxis();         
  categoryAxis.setCategoryLabelPositions(CategoryLabelPositions.UP_45);
  categoryAxis.setMaximumCategoryLabelLines(5);
  </code></pre>
  
  <p>with no success so how can I achieve that??</p>