# Gauge

<flow-gauge>
Reactive Stable

The gauge component displays a single reactive data value.

The gauge component wraps the data value component and adds an optional heading, units field and information popup dialog. Use gauges to build detail panels in your visualization, highlighting key metrics from your data.

Like the data value component, the gauge's value attribute should be set to a Flo.w reactive expression. The gauge will update when the expression result changes. Formatting of numeric values can be set using a D3 format string (opens new window). The value can also be interpreted as an icon name to produce graphical indicator gauges.

# Examples

# Layout

By default, a gauge is sized to fit its content. Gauges can be layed out in an information panel using CSS Flexbox (opens new window) or CSS Grid Layout (opens new window).

# Gauge Styling

Use CSS Custom Properties and CSS Parts to customize gauge style.

# Icon Gauges

Set format to icon to interpet the value property as an icon name. The icon name is also added as a CSS class to the gauge component to allow colouring of the gauge based on the icon displayed.