title: GraphView and resetData
body: <p>please help me, I use the GraphView library (<a href="http://www.jjoe64.com/p/graphview-library.html" rel="nofollow">http://www.jjoe64.com/p/graphview-library.html</a>), it works. But i don't understand how to reset previous data.</p>
  
  <p>Method <code>redrawAll()</code> does not work.</p>
  
  <p>IT'S MY CODE:</p>
  
  <pre><code>   public class MainActivity extends Activity implements OnClickListener{
     private final static int DIALOG_ID=0;
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
  
      Button btnDialog=(Button)findViewById(R.id.btnDialog);
      btnDialog.setOnClickListener(this);
  
  }
  
  
      @Override
  public boolean onCreateOptionsMenu(Menu menu) {
      // Inflate the menu; this adds items to the action bar if it is present.
      getMenuInflater().inflate(R.menu.activity_main, menu);
      return true;
  }
  
  @Override
  public void onClick(View v) {
      // TODO Auto-generated method stub
      switch(v.getId()){
        case R.id.btnDialog:
            createGraph();
      break;
  
      }
  
  }   
  
  //graph create method       
  void createGraph(){
  
      // draw sin curve
      int num = 100;
      GraphViewData[] data = new GraphViewData[num];
      GraphView graphView;
  
      double  v=0;
      for (int i=0; i&lt;num; i++) {
          v += 0.50;
          data[i] = new GraphViewData(i, Math.random()*v);
         }
  
      // graph with dynamically genereated horizontal and vertical labels
     graphView = new LineGraphView(
              getBaseContext()
              , "myGraph"
      );
  
  
  
  
     graphView.redrawAll();
  
    ((LineGraphView) graphView).setDrawBackground(true);
  
      // add data
      graphView.addSeries(new GraphViewSeries(data));
      // set view port, start=2, size=10
      graphView.setViewPort(2, 40);
      graphView.setScalable(true);
  
      LinearLayout layout = (LinearLayout)findViewById(R.id.lvGraphView);
      layout.addView(graphView);  
  
  }
  
  
   }
  </code></pre>