ZoomMode: ChartZoomMode;
The ZoomMode property determines a scale type.
The default scale type is AxisXY, that is, the object is scaled along the X and Y axes.
Before selecting the scale type you need to set appropriate interactive mode: set the InteractiveMode property to Zoom.
To execute the example, create a regular report with a chart on the report sheet. A unit is added to the report which can be used to call the GetZoom procedure using the hyperlink. Add links to the Chart, Report, Tab system assemblies.
Sub GetZoom;
Var
Chart: IChart;
Begin
Chart := PrxReport.ActiveReport.ActiveSheet.Table.Objects.Item(0).Extension As IChart;
Chart.InteractiveMode := ChartInteractiveMode.Zoom;
Chart.ZoomMode := ChartZoomMode.AxisY;
End Sub GetZoom;
After executing the example the scale mode is set, and the object is scaled only along the Y axis.
See also: