Remove a Plot object from the object.
Object.RemovePlot ( vPlot )
The RemovePlot 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. |
If the index is out of the current range, then no action will be taken.
The following example will delete the 3rd plot from an AChart control:
cht1.RemovePlot(3)
The following example will delete the plot named "Horses" from an AChart control:
cht1.RemovePlot("Horses")
APlot, Axes, InsertPlot, Plots