title: How to set date on x axis in Line Chart using AchartEngine?
body: <p>I have tried various link posted on SO,but not got reliable answer.</p>
  
  <p>Here is my code :</p>
  
  <pre><code> TimeSeries series = new TimeSeries("Burned Calories");
  
      for (int i = 0; i &lt; x_axis.size(); i++) {
  
              String date = x_axis.get(i);
  
              int y = Integer.parseInt(y_axis.get(i));
  
              Date d;
  
              try {
  
                      d = df.parse(date);
  
                      series.add(d, y);
  
              } catch (ParseException e) {
                      // TODO Auto-generated catch block
                      e.printStackTrace();
                  }
  
              }
  
        XYMultipleSeriesDataset dataset = new XYMultipleSeriesDataset();
  
        dataset.addSeries(series);
  
  XYSeriesRenderer render = new XYSeriesRenderer();
      render.setColor(Color.GREEN);
  render.setPointStyle(PointStyle.SQUARE);
  render.setFillPoints(true);
  
        XYMultipleSeriesRenderer renderer = new XYMultipleSeriesRenderer();
    renderer.addSeriesRenderer(render);
  
          renderer.setChartTitle("Line Chart");
      renderer.setAxesColor(Color.BLUE);
      renderer.setGridColor(Color.WHITE);
  
      renderer.setShowGrid(true);
      renderer.setShowAxes(true);
      renderer.setShowGridX(true);
      renderer.setShowGridY(true);
      renderer.setShowLabels(true);
      renderer.setPanEnabled(true, true);
      renderer.setFitLegend(true);
      renderer.setXTitle("Date");
      renderer.setAxisTitleTextSize(15);
      renderer.setXLabelsAlign(Align.CENTER);
      renderer.setYTitle("Values");
  
      chart = ChartFactory.getLineChartView(this, dataset, renderer);
  </code></pre>
  
  <p>I am getting strange values on x axis.</p>
  
  <p>Any Help would be appreciated.
  <img src="https://i.stack.imgur.com/QbZfy.png" alt="enter image description here"></p>