IEaxAnalyzeCore.DrillSerie

Syntax

DrillSerie(Serie: IChartSerie): IEaxDrillSerieResult;

Parameters

Serie. Data series.

Description

The DrillSerie method returns information about binding of data series to data.

Comments

To get parameters of the data series, for which the DrillSerie method was executed, use the IEaxDrillSerieResult.Serie property.

Example

Executing the example requires a form containing the Button component named Button1, the ChartBox component named ChartBox1 and the UiErAnalyzer component named UiErAnalyzer1 which is a data source for the ChartBox1 component.
As data source for the UiErAnalyzer1 component, set express report with chart containing at least one series with data. Set the Active property to True for the UiErAnalyzer1 component.

Add links to the Chart, Dimensions system assemblies.

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

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    Expr: IEaxAnalyzer;
    Serie: IChartSerie;
    DrillSerie: IEaxDrillSerieResult;
    DimSelection: IDimSelectionSet;
    CountSel, i: Integer;
Begin
    Expr := UiErAnalyzer1.Instance As IEaxAnalyzer;
    Serie := Expr.Chart.Chart.Series.Item(0);
    DrillSerie := Expr.DrillSerie(Serie);
    If DrillSerie <> Null Then
        DimSelection := DrillSerie.Selection;
        Debug.WriteLine("Elements in selection:");
        CountSel := DimSelection.Count;
        For i := 0 To CountSel - 1 Do
            Debug.WriteLine("• " + DimSelection.Item(i).ToString("NAME"", "True));
        End For;
    End If;
End Sub Button1OnClick;

On clicking the button the console displays a list of elements contained in the selection by all dimension for the first series.

See also:

IEaxAnalyzeCore