title: Auto horizontal scroll with a chartengine - Android
body: <p>I am trying to get a graph in my app to scroll horizontally automatically when the values hit the right corner, so that you do not have to manually scroll when values go out of range.</p>
  
  <p>I have it like this so far:</p>
  
  <pre><code>   mRenderer.setXAxisMin(0);
     mRenderer.setXAxisMax(199);
     mRenderer.setYAxisMin(-2);
     mRenderer.setYAxisMax(3);
     mRenderer.setInScroll(true);
     mRenderer.setPanEnabled(true, false);
     mRenderer.setClickEnabled(false);
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/3tqvV.png" height="350" title="the graph doesn't auto scroll"></p>
  
  <p>You can see the red, black and blue lines as they run off the right side of the screen,
  however I have to manually scroll to the right to see the rest. </p>
  
  <p><em>edit</em>: Also the data coming in is dynamic, so I can't get the max values to set what appears in the graph.</p>