IVZChartAxis.AutoMax

Syntax

AutoMax: Boolean;

Description

The AutoMax property determines whether maximum value will be calculated automatically and set at chart axis.

Comments

Available values:

To round chart axis values and automatically calculate intervals between main grid lines, set the IVZChartGrid.AutoLineCount property to True.

Example

Executing the example requires that the repository contains an express report with the EXPRESS identifier containing a bubble chart.

Add links to the Express, Metabase, Visualizators system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    Express: IEaxAnalyzer;
    BC: IVZBubbleChart;
    CA: IVZChartAxis;
Begin
    // Get repository
    MB := MetabaseClass.Active;
    // Get express report
    Express := MB.ItemById("EXPRESS").Edit As IEaxAnalyzer;
    // Get bubble chart
    BC := Express.BubbleChart.BubbleChart;
    // Get X axis of bubble chart
    CA := BC.AxisX;
    // Disable automatic determination of maximum value on the chart axis
    CA.AutoMax := False;
    // Determine maximum value on the axis
    CA.Max := 1000;
    // Disable automatic determination  of minimum value on the chart axis
    CA.AutoMin := False;
    // Determine minimum value on the axis
    CA.Min := 100;
    // Change axis scale
    CA.DisplayUnit := VisualizatorUnitKind.Hundreds;
    // Change axis label text
    CA.Caption.Text := "Indicator value (in hundreds)";
    // Display labels on the chart axis
    CA.ShowLabels := True;
    // Refresh bubble chart and save report
    Express.BubbleChart.Refresh;
    (Express As IMetabaseObject).Save;
End Sub UserProc;

After executing the example, maximum and minimum values for X axis will be determined, axis scale will be set in hundreds, and axis labels will be displayed on the express report bubble chart.

See also:

IVZChartAxis