Skip to content

Gauge Widget ​

Last updated

A semicircular gauge with a needle, a colored arc and the value underneath.

Settings ​

SettingDescriptionDefault
MinimumLeft end of the scale, in displayed units0
MaximumRight end of the scale100
UnitShown after the number (or before, see Unit position)%
DecimalsDecimal places of the number1 (see below)
Multiply byScales the value before it is drawn and printed1
Unit positionAfter the value or Before the valueAfter
Group thousandsDigit grouping in the printed numberoff
Value labelsJSON map of value → text for the printed numbernone
WarningPercent of the scale at which the arc turns amber70
CriticalPercent of the scale at which the arc turns red90
ColorArc color below the warning threshold#3b82f6 (blue)

How the thresholds work ​

Warning and Critical are percentages of the span, not values. On a gauge from 0 to 250 RPM with Warning 70 and Critical 90, the arc turns amber at 175 RPM and red at 225 RPM. On a gauge from 50 to 150, Warning 70 means 120.

Behavior ​

  • The needle is clamped at the ends: a value below Minimum points at the left end, above Maximum at the right end, while the number shows the real value.
  • A value that is not a number draws no needle and no arc, and prints the text that arrived.
  • Minimum and Maximum labels are printed as typed, without formatting.
  • Until you change Decimals, whole values print with no decimal and others with one (50 → "50", 50.44 → "50.4").
  • If Minimum equals Maximum the needle stays at the left.

Example ​

Feed rate 0–250 mm/min: Minimum 0, Maximum 250, Unit mm/min, Warning 80, Critical 95. Bind value to the feed-rate tag. For a tag holding a 0–1 fraction shown as 0–100 %, set Multiply by 100 and Unit %.

See also ​

Scada.Ink Help Center