DrillPoints(SeriesIndices: Array; PointsIndices: Array; DrillType: EaxDrillType; DimKey: Integer);
SeriesIndeces. An integer array that contains chart series indexes.
PointIndeces. An integer array that contains chart points indexes.
DrillType. Data drilldown method.
DimKey. Key of express report dimension.
The DrillPoints method performs the data drilldown by several chart points.
Use the IEaxChart.ArePointsDrillable method to check whether data can be drilled down.
Executing the example requires a form with the Button1 button on it, 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.
The 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;
points: Array Of Integer;
Series: Array Of Integer;
Begin
Expr := UiErAnalyzer1.Instance As IEaxAnalyzer;
Chart := Expr.Chart;
Points := New Integer[2];
Points[0] := 0;
Points[1] := 1;
Series := New Integer[2];
Series[0] := 0;
Series[1] := 1;
If Chart.ArePointsDrillable(Series, Points, EaxDrillType.Down) Then
Chart.DrillPoints(Series, Points, EaxDrillType.Down, 0);
End If;
End Sub Button1OnClick;
On executing the example it is checked, whether data can be drilled down for the specified chart point set. The drilldown is performed if available for the first two points of the first two series.
See also: