IEaxChart.DrillSeries

Fore Syntax

DrillSeries(SeriesIndexes: Array; [DrillType: EaxDrillType = 1]);

Fore.NET Syntax

DrillSeries(SeriesIndexes: System.Array; DrillType: Prognoz.Platform.Interop.Express.EaxDrillType);

Parameters

SeriesIndexes. An integer array that contains chart series indexes.

DrillType. Data drilldown method.

Description

The DrillSeries method performs the data drilldown by several chart series.

Comments

The DrillSeries method execution changes the last dimension selection, located in rows. According to the DrillType parameter value, the child elements are selected in the dimension, the element with parent element located on it or the elements of the selected series are selected and dimension is moved into the fixed domain. The data aggregation is enabled on fixing dimension by elements.

NOTE. If the EaxDrillType.Up or EaxDrillType.Down drilldown method is selected, the SeriesIndexes array must contain only one element that contains series index.

Use the IEaxChart.IsSeriesDrillable method to check, whether data can be drilled down.

 Fore Example

Executing the example requires a form with the Button1 button, the UiErAnalyzer component named UiErAnalyzer1 and the ChartBox component, that displays chart of the express report, connected to the UiErAnalyzer1. The express report must contain at least two data series.

This procedure is a handler of the OnClick event for the Button1 button. The example is executed on clicking the button.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    Expr: IEaxAnalyzer;
    Chart: IEaxChart;
    Series: Array Of Integer;
Begin
    Expr := UiErAnalyzer1.Instance As IEaxAnalyzer;
    Chart := Expr.Chart;
    Series := New Integer[2];
    Series[0] := 0;
    Series[1] := 1;
    If Chart.IsSeriesDrillable(Series, EaxDrillType.Down) Then
        Chart.DrillSeries(Series, EaxDrillType.Down);
    End If;
End Sub Button1OnClick;

On clicking the button it its checked, whether data can be drilled down for the specified chart series. The drilldown is performed if available.

 Fore.NET Example

Executing the example requires a .NET form with the Button1 button, the UiErAnalyzerNet component named UiErAnalyzerNet1 and the ChartBoxNet component, that displays a chart of the express report, connected to the UiErAnalyzerNet1. The express report must contain at least two data series.

This procedure is the Click event handler for the button1 button. The example is executed on clicking the button.

Imports Prognoz.Platform.Forms.Net;
Imports Prognoz.Platform.Interop.Express;

Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
    Expr: IEaxAnalyzer;
    Chart: IEaxChart;
    Series: Array Of Integer;
Begin
    Expr := UiErAnalyzerNet1.AnalyzerUi.Instance As IEaxAnalyzer;
    Chart := Expr.Chart;
    Series := New Integer[2];
    Series[0] := 0;
    Series[1] := 1;
    If Chart.IsSeriesDrillable(Series, EaxDrillType.edtDown) Then
        Chart.DrillSeries(Series, EaxDrillType.edtDown);
    End If;
End Sub;

The result of the Fore.NET Example matches with that of the Fore Example.

See also:

IEaxChart