IChartAxis.AutoScale

Syntax

AutoScale: ChartAutoScaleMode;

Description

The AutoScale property determines an automatic axis scale mode. A scaleable axis is not used by default.

Example

Sub main;

Var

Metabase : IMetabase;

MetabaseObject : IMetabaseObject;

Report : IPrxReport;

Sheet : ITabSheet;

Chart : IChart;

Begin

Metabase := MetabaseClass.Active;

MetabaseObject := Metabase.ItemById("REPORT").Edit;

Report := MetabaseObject As IPrxReport;

Sheet := Report.ActiveSheet.Table;

Chart := Sheet.Objects.Item(0).Extension As IChart;

Chart.AxisY.AutoScale := 1 As ChartAutoScaleMode;

Chart.AxisY.AutoScaleParameter := 5;

Report.MetabaseObject.Save;

End Sub main;

A regular report sheet with the REPORT identifier must contain a chart.

After executing the example clustering with the specified parameter is applied to the Y axis.

See also:

IChartAxis