WLJS LogoWLJS Notebook

HorizontalGauge

HorizontalGauge[value]
HorizontalGauge[value, {min, max}]
HorizontalGauge[{value1, value2, ...}, {min, max}]

draws one or more horizontal gauges. The default range is {0, 1}. Values outside the range are clamped to its endpoints.

HorizontalGauge[60, {0, 100}]

WLJS implements a frontend-rendered subset of HorizontalGauge. Only the patterns and options documented on this page are supported; other Wolfram Language gauge options and layout patterns are ignored.

Dynamic updates

The first argument can be an Offload expression:

level = 0.2;
HorizontalGauge[Offload[level], {0, 1}]

Changing level updates the existing gauge. The range and options are fixed when the gauge is created.

Options

GaugeLabels

Places a single label beside each gauge. Label lists and placement specifications are not supported.

HorizontalGauge[0.6, GaugeLabels -> "Load"]

WLJS uses the browser's native meter for this gauge. GaugeStyle is not implemented by this frontend renderer.

Supported output forms

On this page