RemoveAxis Method (AChart)

Remove an Axis object from the object.

Syntax

Object.RemoveAxis ( vAxis )

The RemoveAxis method syntax has the following parts:

 

Name

Type

Description

Object

AChart

AChart control

vAxis

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 axis from an AChart control:

cht1.RemoveAxis(3)

The following example will delete the axis named "Horses" from an AChart control:

cht1.RemoveAxis("Horses")

Applies to

AChart

See Also

AAxis, Axes, InsertAxis, Plots