OnScaleChanged Event (AChart)

Occurs when the Max or Min values of the specified Axis object are changed on the object.

Syntax

Object.OnScaleChanged ( lAxisIndex, dScaleMin, dScaleMax )

The OnScaleChanged event syntax has the following parts:

 

Name

Type

Description

Object

AChart

AChart control

lAxisIndex

Val Long

An integer specifying the zero-based index of the object in the array.

dScaleMin

Val Double

A number specifying the new minimum value on the scale.

dScaleMax

Val Double

A number specifying the new maximum value on the scale.

Example

cht1.OnScaleChanged(3,10.0,100.5)

{

  cht1.Caption="The scale has changed."

}

Applies to

AChart

See Also

AAxis, APlot, Axes, MaxDataSize, OnDataOverrun, Plots