DrillPoints(SeriesIndices: Array; PointsIndices: Array; DrillType: EaxDrillType; DimKey: Integer);
DrillPoints(SeriesIndices: System.Array; PointsIndices: System.Array; DrillType: Prognoz.Platform.Interop.Express.EaxDrillType; DimKey: uinteger);
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.
Executing the example requires a .NET form with the Button1 button, the UiErAnalyzerNet component named UiErAnalyzerNet1 and the ChartBoxNet component, that displays frequency of the express report, connected to the UiErAnalyzerNet1. The express report must contain at least two data series
The procedure is the Click event handler for the button1 button. The example is executed on clicking the button.
Imports Prognoz.Platform.Interop.Chart;
Imports Prognoz.Platform.Interop.Express;
...
Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
Expr: IEaxAnalyzer;
Chart: IEaxChart;
Series: Array Of Integer;
Points: Array Of Integer;
Begin
Expr := UiErAnalyzerNet1.AnalyzerUi.ErAnalyzer;
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.edtDown) Then
Chart.DrillPoints(Series, Points, EaxDrillType.edtDown, 0);
End If;
End Sub;
The result of Fore.NET Example is the same as the result of Fore Example.
See also: