Skip to content

Gauge ui-gauge Added In: v1.1.0

Adds a Gauge Chart to your Dashboard. This can be configured with custom types (half, 3/4), styles (rounded, needle) and segmentation with examples detailed below.

Screenshot showing each gauge type side-by-sideScreenshot showing each gauge type side-by-side

Input

Values for the gauges can be set by sending a numerical value in msg.payload. The gauge will then update to reflect this value.

Properties

PropDynamicDescription
GroupDefines which group of the UI Dashboard this widget will render in.
SizeControls the width of the dropdown with respect to the parent group. Maximum value is the width of the group.
TypeDefines the shape of the gauge, "Tile", "Half Gauge" or "3/4 Gauge"
StyleDefines the style of arc rendered, "Needle" or "Rounded"
Range (min)The smallest value that can be shown on the gauge
Range (max)The largest value that can be shown on the gauge
SegmentsDefines the barriers by which the arc is color coded. These segments can also be shown on the gauge.
LabelText shown above the gauge, labelling what the gauge is showing.
PrefixText to be added _before_ the value in the middle of the gauge.
SuffixText to be shown _after_ the value in the middle of the gauge.
UnitsSmall text to be shown below the value in the middle of the gauge.
IconIcon to be shown below the value in the middle of the gauge. Uses Material Designs Icon, no need to include the mdi- prefix.
Sizes (Gauge)(px) How thick the arc and backdrop of the gauge are rendered.
Sizes (Gap)(px) How big the gap/padding is between the Gauge and the "Segments"
Sizes (Segments)(px) How thick the segments are rendered.

Examples

Half Gauge - Rounded

TypeStyleSize (Gauge)Size (Gap)Size (Segments)
Half GaugeRounded1628

Example of a Half Gauge, showing a rounded arcExample of a Half Gauge, showing a rounded arc.

Half Gauge - Needle

TypeStyleSuffixSize (Gauge)Size (Gap)Size (Segments)
Half GaugeNeedle%0032

Example of a Half Gauge, showing a needle with segments-onlyExample of a Half Gauge, showing a needle with segments-only.

3/4 Gauge - Rounded

TypeStyleSize (Gauge)Size (Gap)Size (Segments)
3/4 GaugeRounded1600

Example of a 3/4 Gauge, showing a rounded arc with no segmentsExample of a 3/4 Gauge, showing a rounded arc with no segments.

3/4 Gauge - Needle

TypeStyleSize (Gauge)Size (Gap)Size (Segments)
3/4 GaugeNeedle3226

Example of a 3/4 Gauge, showing a needle with segments and an arcExample of a 3/4 Gauge, showing a needle with segments and an arc.

Tile

TypeLabel
TileMy Tile

Examples of some Tile GaugesExamples of some Tile Gauges