Pocket PC Controls.com's Chart Control

Chart.ClearAll Method 

Clears all series objects from the collection

public void ClearAll();

Example

private void LoadChart()
{
  chart1.ClearAll();

  Series s = new Series("Cereal 1", ChartType.Line);

  s.AddXY(1, "1999");
  s.AddXY(2, "2000");
  s.AddXY(3, "2001");
  s.AddXY(4, "2002");

  chart1.AddSeries(s);

  chart1.Refresh();
}

See Also

Chart Class | PPCC.Chart Namespace