ClearChartData Method

Use this method to clear all data from the internal chart data array.

[Visual Basic]
Sub ClearChartData()
[C#]
void XYChartNETCtl.ClearChartData()
[C++]
void ClearChartData()

Example

XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form.

[Visual Basic]
With XYChartNETCtl1
   .ClearChartData                'Clear all data
   .ChartData = newChartDataArray 'Set the new datapoints
   .Refresh                       'Refresh required to refresh the chart with the new data 
End With

[C#]
XYChartNETCtl1.ClearChartData();              //Clear all data
XYChartNETCtl1.ChartData = newChartDataArray  //Set the new datapoints
XYChartNETCtl1.Refresh();                     //Refresh required to refresh the chart with the new data 

[C++]
XYChartNETCtl1->ClearChartData();              //Clear all data
XYChartNETCtl1->ChartData = newChartDataArray  //Set the new datapoints
XYChartNETCtl1->Refresh();                     //Refresh required to refresh the chart with the new data 

See Also

Methods | Properties