XY Chart NET 3 Control Reference
ClearChartXData Method

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

Syntax
[Visual Basic]
Sub ClearChartXData()
[C#]
void XYChartNETCtl.ClearChartXData()
[C++]
void XYChartNet::XYChartNETCtl::ClearChartXData()
       
Example
' XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form.

With XYChartNETCtl1
   .ClearChartXData()             'Clear all x-data
   .ChartData = newChartDataArray 'Set the new datapoints
   .Refresh()                     'Refresh required to refresh the chart with the new data 
End With
// XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form.

XYChartNETCtl1.ClearChartXData();             //Clear all x-data
XYChartNETCtl1.ChartData = newChartDataArray  //Set the new datapoints
XYChartNETCtl1.Refresh();                     //Refresh required to refresh the chart with the new data 
// XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form.

XYChartNETCtl1->ClearChartXData();             //Clear all x-data
XYChartNETCtl1->ChartData = newChartDataArray  //Set the new datapoints
XYChartNETCtl1->Refresh();                     //Refresh required to refresh the chart with the new data 
See Also

 

 


© 2003 - 2013 ControlEng Corporation. All rights reserved.