title: JFreeCharts TimeSeriesChart set domain interval
body: <p>How to set time interval for Domain axis in TimeSeriesChart? 
  Now i have domain axis with labels which looks something like: 22.00 23.00, 00.00, 1.00, 2.00, etc.</p>
  
  <p>How can I set them like: 11 feb, 12 feb etc. 
  I should have posibility to see all hourse  only if I zoom  chart.</p>
  
  <p>Edit: Now I solve it with the help of <code>SimpleDateFormat</code>.</p>
  
  <pre><code>DateAxis dateAxis = (DateAxis) plot.getDomainAxis();
  DateFormatSymbols dfs = DateFormatSymbols.getInstance(); // default locale
  dateAxis.setDateFormatOverride(new SimpleDateFormat("dd-MMM-HH:mm", dfs));
  </code></pre>
  
  <p>Chart displayed :</p>
  
  <p><img src="https://i.stack.imgur.com/Gd3x5.png" alt="enter image description here"></p>
  
  <p>Edit: The question is still open: Is it possible to set something like grouping by day for domain axis?</p>
  
  <p>Edit: More information:)
  I try to get some data for last week period, but if data in database only for 1 or 2 days, chart will look like this:
  <img src="https://i.stack.imgur.com/kXwjd.png" alt="enter image description here"></p>
  
  <p>as you can see timline on domain axis store information from 00.00(actualy start time is 23.xx) till 10.00, and it's no good, because user should see day which data belongs. In this case I create TimeSeries and fill it like :</p>
  
  <pre><code>TimeSeries ts=new TimeSeries(name);
  ts.addOrUpdate(new Hour(date), value);
  </code></pre>
  
  <p>If I fill ts like </p>
  
  <pre><code>ts.addOrUpdate(new Day(date), value);
  </code></pre>
  
  <p>then chart didn't show any data</p>
  
  <p><img src="https://i.stack.imgur.com/U26lw.png" alt="enter image description here"></p>
  
  <p>Quistion is how to make chart group data (maybe with the help  of zoom ) by days, like in the following chart?</p>
  
  <p><img src="https://i.stack.imgur.com/1Ukik.png" alt="enter image description here"></p>