Skip to content

CSS gauges built with Orbit

A gauge is one of the clearest tests of a radial UI framework: it asks you to draw an arc, place tick marks on it, attach labels, and rotate a needle — all things that traditionally pull you toward SVG or canvas. With Orbit, every part of a gauge is a regular HTML element styled by CSS, which means you can theme it, animate it, and inspect it like the rest of your page.

These three examples cover the most common gauge layouts. Pick the one closest to what you need and adapt it — the markup is short enough to read end-to-end in a minute.

Examples

Which one should I pick?

Use caseRecommendedWhy
Score / rating display180° gaugeHalf-circle is the conventional shape readers expect for ratings
Speedometer / RPM240° gaugeWider arc fits more tick marks for granular reading
Compact instrumentFuel gauge90° footprint fits inside a tight dashboard cluster

All three examples use the <o-arc> element for the colored bands and a vector for the needle. If you want to understand the underlying primitives first, see the <o-arc> element docs.