IVZChartGrid.AutoLineCount

Syntax

AutoLineCount: Boolean;

Description

The AutoLineCount property determines whether the number of intervals between main grid lines is calculated automatically.

Comments

Available values:

To round values of calculated intervals, set the IVZChartAxis.AutoMax and IVZChartAxis.AutoMin properties 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;
    BubbleChart: IVZBubbleChart;
    Axis: IVZChartAxis;
    PrimaryGrid: IVZChartGrid;
Begin
    // Get repository
    MB := MetabaseClass.Active;
    // Get express report
    Express := MB.ItemById("EXPRESS").Edit As IEaxAnalyzer;
    // Get bubble chart
    BubbleChart := Express.BubbleChart.BubbleChart;
    // Get X axis of bubble chart
    Axis := BubbleChart.AxisX;
    // Get main grid lines
    PrimaryGrid := Axis.PrimaryGrid;
    // Check displaying of grid  lines on chart
    If PrimaryGrid.Visible Then
        // Set the number of intervals between lines manually
        PrimaryGrid.AutoLineCount := False;
        PrimaryGrid.LineCount := 10;
    End If;
    // Refresh bubble chart
    Express.BubbleChart.Refresh;
    // Save changes
    (Express As IMetabaseObject).Save;
End Sub UserProc;

After executing the actions in express express, the bubble chart displays main grid lines with the specified interval between them.

See also:

IVZChartGrid