IChartStyleAbsoluteGroup.AbsoluteIndexOf

Fore Syntax

AbsoluteIndexOf(Serie: IChartSerie): Integer;

Fore.NET Syntax

AbsoluteIndexOf[Serie: IChartSerie]: Integer;

Parameters

Serie. A series, the index of the relative group of which is necessary to be obtained.

Description

The AbsoluteIndexOf property returns the index of a relative group of chart series, which includes the given series.

Comments

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. The UiChart1 component must be a data source for ChartBox1 component with the Mixed chart type. Also the hyperlinks mode must be set for the chart.

Sub ChartBox1OnSerieClick(Sender: Object; Args: IChartSerieClickEventArgs);
Var
    Chart: IChart;
Begin
    Chart := ChartBox1.Chart;
    Debug.WriteLine(Chart.StyleGroup.AbsoluteIndexOf(Chart.Series.Item(Args.SerieIndex)).ToString);
End Sub ChartBox1OnSerieClick;

After executing the example on clicking the definite series of the chart the index of a relative group of series to which it belongs is output to the console.

Fore.NET Example

Executing the example requires a form with the UiChartNet, ChartBoxNet and Button components located on it with UiCharNett1, ChartBoxNet1 and Button1 correspondingly. UiChartNet1 component must be a data source for ChartBoxNet1 component with the Mixed scale type. Also the hyperlinks mode must be set for the chart.

Imports Prognoz.Platform.Interop.Chart;

Private Sub chartBoxNet1_OnSerieClick(Sender: System.Object; Args: Prognoz.Platform.Interop.Chart.ChartSerieClickEventArgs);
Var
    Chart: IChart;
Begin
    Chart := ChartBoxNet1.CtrlBox.Chart;
    System.Diagnostics.Debug.WriteLine(Chart.StyleGroup.AbsoluteIndexOf[Chart.Series.Item[Args.SerieIndex]].ToString());
End Sub;

After executing the example on clicking the definite series of the chart the index of a relative group of series to which it belongs is output to the console.

See also:

IChartStyleAbsoluteGroup