MinMaxRelatesToSecondaryAxis: Boolean;
The MinMaxRelatesToSecondaryAxis property determines whether minimum and maximum values are set relative to secondary axis.
Available values:
True. Minimum and maximum values are set.
False. Minimum and maximum values are not set.
To set minimum and maximum values, use the IChartAxisLevelLine.Min and IChartAxisLevelLine.Max properties.
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:
Setting of minimum and maximum values relative to secondary axis is enabled.
The minimum value is set manually and is equal to 0.125000.
The maximum value is set manually and is equal to 0.875000.
Fill color of the part displayed with levels lines is set.
See also: