IEaxAnalyzeCore.ExcludeChartElements

Syntax

ExcludeChartElements(Elements: Array);

Parameters

Elements. Array containing chart elements to be excluded.

Description

The ExcludeChartElements method excludes the specified dimensions elements from selection.

Comments

Array, which is set in the Elements parameter, can contain chart series or points. When the method is executed, dimension elements corresponding to selected chart elements will be excluded from selection.

Example

Executing the example requires a form containing the Button component named Button1, the UiErAnalyzer component named UiErAnalyzer1 which is a data source for the ChartBox component named ChartBox1. The chart of the express report specified as data source for UiErAnalyzer1 should contain at least two series. Set the Active property to True for the UiErAnalyzer1 component.

Add links to the Express and Chart system assembles.

The procedure is a handler of the OnClick event for the Button1 component.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    Eax: IEaxAnalyzer;
    Chart: IChart;
    Series: IChartSeries;
    Arr: Array Of Variant;
Begin
    Eax := UiErAnalyzer1.ErAnalyzer;
    Chart := Eax.Chart.Chart;
    Arr := New Variant
[2];
    Series := Chart.Series;
    Arr[0] := Series.Item(0);
    Arr[
1] := Series.Item(1);
    Eax.ExcludeChartElements(Arr);
End Sub Button1OnClick;

Clicking the button removes the first two chart series.

See also:

IEaxAnalyzeCore