formula

Specifies the aggregation method for the measure displayed in the Gauge component. This is equivalent to selecting a method from the ‘Aggregate’ menu under the Data tab of the component ‘Properties’ dialog box.

GaugeFormula

Example

Gauge1.query = 'Sales';
Gauge1.fields = ['Total'];
Gauge1.formula = StyleConstant.AVERAGE_FORMULA;

Either syntax below can be used in component script:

formula           // unqualified
Gauge1.formula    // qualified

For onInit/onRefresh scripts, and for component and property scripts on other components, the second (qualified) form is required.