title: JFreeChart How create an areachart with an TimeLine axis
body: <p>I want to make the example of jfreechart: XYAreaChartDemo2.java, an xyareachart but the X axis must be of timeSeries. i have tried this:</p>
  
  <pre><code>TimeSeriesCollection dataset1 = new TimeSeriesCollection(timeSeries);//my timeseries 
      XYSeriesCollection dataset2 = new XYSeriesCollection();  
  
      JFreeChart chart = ChartFactory.createXYAreaChart("titulo","Eje x","eje Y", dataset2, PlotOrientation.VERTICAL,true, false,false);
      chart.setBackgroundPaint(Color.white);
      XYPlot xyplot= chart.getXYPlot();
      //fondo
      xyplot.setBackgroundPaint(Color.white);
  
      //pone la serie de time en el formato area (pero pierde el formato tiempo)
      xyplot.setDataset(dataset1);
  </code></pre>
  
  <p>but my chart is returned like a areachart with x-axis from 0 to 1.285......</p>