query

fields to specify the data block from which to draw the fields.

Specifies the data block to be used by the Gauge component. The available data blocks appear at the top of the Toolbox panel in Visual Composer.

dataBlocks 6

Type

String

Example

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

Either syntax below can be used in component script:

query           // unqualified
Gauge1.query    // qualified

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