AutoScale: ChartAutoScaleMode;
The AutoScale property determines method of automatic scaling of an axis. By default scaled axis is not used.
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 sheet of the regular report with the identifier REPORT should contain a chart.
After executing the example clustering with the specified parameter is applied to the Y axis.
See also: