ITChart.OnUndoZoom
ITChart
property OnUndoZoom: TNotifyEvent;
Type Library
TeeChartx
Description
An OnUndoZoom event occurs when Chart Axis scales are reset to the Minimum and Maximum values that fit all Series points. Users can undo zoom by dragging the left mouse button drawing a rectangle from bottom-right to top-left. You can undo zoom by calling the TChart.Zoom.Undo procedure. Both techniques cause this event to be triggered. You can use this event together with TChart.OnZoom and TChart.OnScroll events to react to changes in Axis scales.
Example [Visual Basic]:
This code will reset axis scales at Zoom.Undo event:
Private Sub TChart1_OnUndoZoom()
With TChart1
.Axis.Left.SetMinMax 20, 80
.Axis.Bottom.SetMinMax DateValue("04/10/00"), DateValue("12/10/00")
End With
End Sub