RemovePlot Method (AChart)

Remove a Plot object from the object.

Syntax

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.

Comments

If the index is out of the current range, then no action will be taken.

Example

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")

Applies to

AChart

See Also

APlot, Axes, InsertPlot, Plots