Clears all the data points for the specified Plot objects or all Plot objects on the object.
Object.ClearData ( vPlot )
The ClearData method syntax has the following parts:
|
Name |
Type |
Description |
|
Object |
AChart |
AChart control |
|
vPlot |
Val Variant |
Either the name of the object or the zero-based index of the object in the array. |
The following example will clear all the data points for the 3rd plot in an AChart object:
cht1.ClearData(3)
The following example will clear all the data points for the plot named "Horses" in an AChart object:
cht1.ClearData("Horses")
The following example will clear all the data points for every plots in an AChart object:
cht1.ClearData()
APlot, Axes, Plots, RemovePlot