IZoom.ZoomRect
IZoom

procedure ZoomRect(Left, Top, Right, Bottom: Integer);

Type Library
TeeChartx

Description
The ZoomRect method does zoom on Chart contents. The Rect parameter defines the pixel rectangle coordinates of the chart area to be zoomed. Calling this method is similar to manually drawing a zoom box at run-time by dragging the left mouse button.

You can perform a zoom in by specifying a Rect parameter enclosed on Chart dimensions, and zoom out by specifying a bigger rectangle parameter.

Zoom in example:

Delphi

Chart1.ZoomRect( Rect( 5,5,Chart1.Width-5,Chart1.Height-5 ) );

Visual Basic

TChart1.Zoom.ZoomRect 5, 5, TChart1.Width - 5, TChart1.Height - 5

Zoom out example:

Delphi

Chart1.ZoomRect( Rect( -5,-5,Chart1.Width+5,Chart1.Height+5 ) );

Visual Basic

TChart1.Zoom.ZoomRect - 5, - 5, TChart1.Width + 5, TChart1.Height + 5