DrillSerie(Serie: IChartSerie): IEaxDrillSerieResult;
DrillSerie(Serie: Prognoz.Platform.Interop.Chart.IChartSerie): Prognoz.Platform.Interop.Express.IEaxDrillSerieResult;
Serie. Data series.
The DrillSerie method returns information on connection of a data series to data.
To get parameters of the data series, for which the DrillSerie method was performed, use the IEaxDrillSerieResult.Serie property.
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 property = 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 list of elements containing in the selection by all dimension for the first series.
The requirements and result of the Fore.NET Example execution match with those in the Fore Example. Use Fore.NET analogs instead of Fore components.
Imports Prognoz.Platform.Interop.Express;
Imports Prognoz.Platform.Interop.Chart;
Imports Prognoz.Platform.Interop.Dimensions;
…
Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
Expr: IEaxAnalyzer;
Serie: IChartSerie;
DrillSerie: IEaxDrillSerieResult;
DimSelection: IDimSelectionSet;
DimSel: IDimSelection;
CountSel, i: Integer;
Begin
Expr := UiErAnalyzerNet1.ErAnalyzer.Instance As IEaxAnalyzer;
Serie := Expr.Chart.Chart.Series.Item[0];
DrillSerie := Expr.DrillSerie(Serie);
If DrillSerie <> Null Then
DimSelection := DrillSerie.Selection;
System.Diagnostics.Debug.WriteLine("Elements in selection:");
CountSel := DimSelection.Count;
For i := 0 To CountSel - 1 Do
DimSel := DimSelection.Item[i];
System.Diagnostics.Debug.WriteLine("• " + DimSel.ToString("NAME", ", ", True));
End For;
End If;
End Sub;
See also: