Skip to content
FreeData

Analog Gauge

An analog gauge whose needle swings and settles on its value, with a printed dial and a red zone.

Plan
Free · MIT
Dependencies
React only
Props
12 (12 adjustable)

Free forever

MIT license, for personal and commercial projects. See installation

Made with Furin: Pill Nav · Metal Button · Copy Morph

Props

PropTypeDefaultDescription
valuenumber72Value the needle points to.
minnumber0Value at the start of the scale.
maxnumber100Value at the end of the scale.
labelstring"Pressure"Label printed on the dial face.
unitstring"PSI"Unit printed on the dial face.
ticksnumber11Number of major tick marks with a number.
redlinenumber85Value where the red zone starts (use the max to remove it).
sizenumber320Gauge diameter, in px.
bouncenumber0.55How far the needle overshoots and oscillates before settling.
accentstring"#ff6a2a"Color painted on the needle tip.
wanderbooleanfalseChanges the value on its own every few seconds (handy for demos).
intervalnumber2.8Seconds between changes when wander is on.

Installation

Install it

1Install the package

npm i furin-ui

2Import it

import { AnalogGauge } from "furin-ui";

Also with pnpm add furin-ui, yarn add furin-ui or bun add furin-ui. Each component ships its own CSS and imports it for you.

Dependencies

React
18 or later
Other libraries
none
License
MIT

Each file ships its own CSS: there's nothing else to install.

Keep exploring

  • Bars that compete round after round: they grow on springs and the rows reorder whenever someone overtakes another.

    Data

  • A 52-week activity grid that fills in day by day with a color scale. Hover to see each day's date and count.

    Data

  • A donut chart that assembles segment by segment, with a legend. On hover, one segment pulls out and the rest dim.

    Data