IChartStyleAbsoluteGroup.MakeRelative

Fore Syntax

MakeRelative;

Fore.NET Syntax

MakeRelative();

Description

The MakeRelative method allows to place all series of the chart in a relative group.

Comments

This method works only when the combined scale type is set for the chart.

If required, you can set this type of scale using the following command:

«Chart.Style := ChartStyle.Mixed»

Relative group is formed by summation of series values. In this case the totals chart looks like this:

Fore Example

Executing the example requires a form with the UiChart, ChartBox and Button components located on it with UiChart1, ChartBox1 and Button1 identifiers correspondingly. UiChart1 component must be a data source for ChartBox1 component and it must have the Mixed type of a scale for a chart.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    Chart: IChart;
Begin
    Chart := ChartBox1.Chart;
    Chart.StyleGroup.MakeRelative;
End Sub Button1OnClick;

After executing the example on clicking the Button1 component on the chart all series are located in one group:

Fore.NET Example

Executing the example requires a form with the UiChartNet, ChartBoxNet and Button components located on it with UiChartNet1, ChartBoxNet1 and Button1 identifiers correspondingly. UiChartNet1 component must be a data source for ChartBoxNet1 component and it must have the Mixed type of a scale for a chart.

Imports Prognoz.Platform.Interop.Chart;

Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
    Chart: IChart;
Begin
    Chart := ChartBoxNet1.CtrlBox.Chart;
    Chart.StyleGroup.MakeRelative();
End Sub;

After executing the example on clicking the Button1 component on the chart all series are located in one group:

See also:

IChartStyleAbsoluteGroup