IChartAxisLevelLine.MinMaxRelatesToSecondaryAxis

Syntax

MinMaxRelatesToSecondaryAxis: Boolean;

Description

The MinMaxRelatesToSecondaryAxis property determines whether minimum and maximum values are set relative to secondary axis.

Comments

Available values:

To set minimum and maximum values, use the IChartAxisLevelLine.Min and IChartAxisLevelLine.Max properties.

Example

Executing the example requires a form, the Button component with the Button1 identifier on the form, the ChartBox component with the ChartBox1 identifier and the UiErAnalyzer component with the UiErAnalyzer1 identifier, which is used as a data source for the ChartBox1 component. Specify the express report saved on the chart sheet as a data source for the UiErAnalyzer1 component. The chart must contain level lines.

The example is a handler of the OnClick event for the Button1 component.

Add a link to the Drawing system assembly.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    ChartLevel: IChartAxisLevelLine;
    AxisY: IChartAxis;
Begin
    AxisY := ChartBox1.Chart.AxisY;
    ChartLevel := AxisY.LevelLines.Item(0);
    ChartLevel.MinMaxRelatesToSecondaryAxis := True;
    ChartLevel.AutoMin := False;
    ChartLevel.Min := 0.125000;
    ChartLevel.AutoMax := False;
    ChartLevel.Max := 0.875000;
    ChartLevel.InterlineColor := GxColor.FromName("Blue");
End Sub Button1OnClick;

After executing the example the chart displays level lines according to the specified parameters:

See also:

IChartAxisLevelLine