DrillSeries(SeriesIndexes: Array; [DrillType: EaxDrillType = 1]);
SeriesIndexes. An integer array that contains chart series indexes.
DrillType. Data drilldown method.
The DrillSeries method performs the data drilldown by several chart series.
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.
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.
See also: