XY Chart NET 3 Control Reference > Methods > ClearChartYData Method |
Use this method to clear all y-data from the internal chart data array.
[Visual Basic] Sub ClearChartYData() |
[C#] void XYChartNETCtl.ClearChartYData() |
[C++] void XYChartNet::XYChartNETCtl::ClearChartYData() |
' XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form. With XYChartNETCtl1 .ClearChartYData() 'Clear all y-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.ClearChartYData(); //Clear all y-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->ClearChartYData(); //Clear all y-data XYChartNETCtl1->ChartData = newChartDataArray //Set the new datapoints XYChartNETCtl1->Refresh(); //Refresh required to refresh the chart with the new data