IChartStyleAbsoluteGroup.AbsoluteIndexOf

Syntax

AbsoluteIndexOf(Serie: IChartSerie): Integer;

Parameters

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

Description

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

Comments

A relative group is formed by summation of series values. In this case the summary chart looks as follows:

Example

Executing the example requires a form with the UiChart, ChartBox and Button components on the form with the UiChart1, ChartBox1 and Button1 identifiers respectively. The UiChart1 component must be a data source for the ChartBox1 component with the Mixed chart type. The hyperlinks mode must also 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 specific chart series the index of a relative group of series, to which it belongs, is displayed in the console.

See also:

IChartStyleAbsoluteGroup