OGE logoOGE

Gauges & sparklines

Dashboard-sized readings on the same engine as the charts: circular and linear gauges with scales, coloured ranges and needle / bar / marker indicators that sweep in and glide between values (never under prefers-reduced-motion), the bullet chart for value-versus-target, and word-sized sparklines that ship as their own entry point. Gauges are role="meter"s whose aria-valuetext speaks the value and the labelled range it falls in; every chart carries a screen-reader table. The cartesian charts are on the overview.

role=meter ranges bullet graph sparkline entry

Circular gauge

Ticks, labels and coloured ranges around an arc from startAngle to endAngle (degrees, 0 = 12 o'clock). The indicator is a needle, a filled bar (from barBase) or a marker; subvalues add small rim markers. Press the button — the indicators glide to the new readings.

needle bar marker half gauge
Speed
Chart data
Value96 km/h, Fast
Min0
Max160
Normal0 – 90
Fast90 – 120
Over the limit120 – 160
CPU
Chart data
Value64%, Healthy
Min0
Max100
Healthy0 – 70
Busy70 – 90
Saturated90 – 100
Load
Chart data
Value64
Min0
Max100
Value40
Value85

Linear gauge

The same scale, ranges and meter semantics on a straight track — orientation horizontal or vertical, a filling bar or a sliding marker, subvalue ticks across the track. A horizontal gauge mirrors in right-to-left pages (rtlEnabled overrides).

horizontal vertical marker RTL
Water tank
Chart data
Value62 L
Min0
Max100
Refill0 – 15
Value25 L
Value80 L
Level
Chart data
Value62
Min0
Max100

Bullet chart

Value against target on one compact scale: the qualitative ranges (darkest = poorest by default, or your own colours), the value bar and the target marker. Hover shows both; the svg's accessible name speaks them and the screen-reader table lists the bands.

target qualitative bands compact
Revenue (k$)
0 100 200 300
Chart data
Value270
Target250
Poor0 – 150
Satisfactory150 – 225
Good225 – 300
Profit (%)
0 10 20 30
Chart data
Value22
Target27
0 – 200 – 20
20 – 2520 – 25
25 – 3025 – 30
New customers
0 500 1,000 1,500 2,000 2,500
Chart data
Value1,650
Target2,100
0 – 1,4000 – 1,400
1,400 – 2,0001,400 – 2,000
2,000 – 2,5002,000 – 2,500

Sparklines

Word-sized charts for cells and tiles — line, area, bar or winloss, with first / last / min / max markers and an optional hover tooltip. Import it from @oge-ui/charts/sparkline: that entry never loads the cartesian chart.

line / area winloss markers own entry point
SymbolPrice7 daysTrendUp / down days
ACME182.4
GLOBX64.1
INITECH23.9
UMBRA9.3