title: How to display the chart with real time in mpandroidchart?
body: <p>I am using <a href="https://github.com/PhilJay/MPAndroidChart" rel="nofollow noreferrer">MPAndroidChart</a>
  I need to display the line chart with real time. But problem is, it's displaying after the entire completed one. Actually it should plot like real time. What I tried is,</p>
  
  <pre><code>private void updateUI(final ArrayList&lt;TimeModel&gt; pJsonObject) {
  
  for(int i=0;i&lt;pJsonObject.size();i++){
              int speedRates = pJsonObject.get(i).getSpeedRate();
              String time = String.valueOf(pJsonObject.get(i).getTotalTime());
              xAxes.add(time);
              //yAxes.add(new Entry(10, 0));
              yAxes.add(new Entry(speedRates,i));
          }
          String[] xaxes = new String[xAxes.size()];
          for (int i = 0; i &lt; xAxes.size(); i++) {
              xaxes[i] = xAxes.get(i).toString();
          }
  
          LineDataSet lineDataSet = new LineDataSet(yAxes, "Time");
  
          lineDataSet.setDrawCircles(true);
          lineDataSet.setColor(Color.GREEN);
  
          lineDataSets.add(lineDataSet);
  
          linechart.setData(new LineData(xaxes, lineDataSets));
          linechart.setVisibleXRangeMaximum(65f);
  //        linechart.setTouchEnabled(true);
  //        linechart.setDragEnabled(true);
  
          linechart.getXAxis().setPosition(XAxis.XAxisPosition.BOTTOM);
  
          linechart.getAxisLeft().setDrawGridLines(false);
          linechart.getXAxis().setDrawGridLines(false);
  
  
          YAxis yAxisRight = linechart.getAxisRight();
          yAxisRight.setEnabled(false);
  
          linechart.animateXY(3000, 3000);
   }
  </code></pre>
  
  <p>But this is plotting as completed one. I need to plot as moving real time in mpandroid chart. </p>