Module

Gauge

The gauge meter widget illustrates the proportion of the indicated sets of values as portions of a wheel.

Tutorials:
See:

View Source widgets/gauge.js, line 8

Methods

# setAutoScale(autoScale)

Set the auto scale.

Parameters:
Name Type Description
autoScale boolean

Enable or disable.

View Source widgets/gauge.js, line 51

# setLabelColor(color)

Set the color for label.

Parameters:
Name Type Description
color string

Color value.

Default Value:
  • '#FFFFFF

View Source widgets/gauge.js, line 107

# setLastIndex(limit)

Set the index of the data array to limit processing.

Parameters:
Name Type Description
limit number

Index number.

View Source widgets/gauge.js, line 33

# setMaxScaleVal(value)

Set the maximum value of the scale.

Parameters:
Name Type Description
value number

Minimun value.

View Source widgets/gauge.js, line 78

# setMinScaleVal(value)

Set the minimum value of the scale.

Parameters:
Name Type Description
value number

Minimun value.

View Source widgets/gauge.js, line 69

# setMultiplier(multiplier)

Set a multiplier for the data.

Parameters:
Name Type Description
multiplier number

Value.

Default Value:
  • 1

View Source widgets/gauge.js, line 126

# setNumberFormat(format)

Set a format to number.

The following values are supported:

  • dot
  • comma
  • bytes
  • scientific
Parameters:
Name Type Description
format Number

Number format.

Default Value:
  • 'comma'

View Source widgets/gauge.js, line 142

# setPrecission(precision)

Set the precision number.

Parameters:
Name Type Description
precision number

Precision value.

Default Value:
  • 2

View Source widgets/gauge.js, line 88

# setReverseScale(bool)

Set the scale as reseverse.

Parameters:
Name Type Description
bool boolean

Enable or disable.

View Source widgets/gauge.js, line 60

# setUnits(unit)

Set the unit for the values.

Parameters:
Name Type Description
unit string

Unit value.

View Source widgets/gauge.js, line 97

# setValue(value)

Set the column with the value.

Parameters:
Name Type Description
value string

Value to show.

View Source widgets/gauge.js, line 42

# setWhere(where)

Conditions to show in the center of the gauge.

Parameters:
Name Type Description
where Object

Key value object.

View Source widgets/gauge.js, line 116