IEaxSpeedometer.AggregationFunction

Syntax

AggregationFunction: EaxAggregationFunction;

Description

The AggregationFunction property determines aggregation method applied for calculation of value displayed on the speedometer if several data series are selected in the report.

Example

Executing the example requires that the repository contains an express report with the EXPRESS_REPORT identifier. Add links to the Express, Metabase system assemblies.

Sub AdjustSpeedometer;
Var
    MB: IMetabase;
    Enalyzer: IEaxAnalyzer;
    Speedometer: IEaxSpeedometer;
Begin
    MB := MetabaseClass.Active;
    Enalyzer := MB.ItemById("EXPRESS_REPORT").Edit As IEaxAnalyzer;
    Speedometer := Enalyzer.Speedometer;
    Speedometer.Active := True;
    Speedometer.Visible := True;
    Speedometer.AutoScale := False;
    Speedometer.MaxValue := 100;
    Speedometer.MinValue := 0;
    Speedometer.AggregationFunction := EaxAggregationFunction.Average;
    (Enalyzer As IMetabaseObject).Save;
End Sub AdjustSpeedometer;

On executing the example express report speedometer parameters are set up.

See also:

IEaxSpeedometer