Content
- Name the band in text beside the dial: “Preferred for spraying”.
- Put the unit in
unitso it sets smaller than the reading. - Use
displayto round the reading without moving the arc. - Write soil depths with the double prime: 8″, 16″.
Dials, rails and a compass for agricultural readings: Delta-T, temperature, soil moisture, wind and fire danger.
Change the spray window, then press Replay to watch the arc sweep.
<WGaugeDial
size={160}
value={4.6}
min={0}
max={20}
zones={DELTA_T_ZONES}
contained
ariaLabel="Delta-T 4.6, preferred for spraying"
animate
/>A 270° dial. The track holds the value arc in the colour of the band the reading falls in, and a white marker ringed in that colour. A thin ring outside the track shows each band’s colour, and every band edge is labelled.
The spray window. Green is the preferred 2–8 band, amber sits either side of it and red starts at 10.
Pass your own zones for another scale. Temperature runs 0–50 °C in four bands, and cold takes teal so it doesn’t share amber with hot.
One rail per probe depth, shallowest first, so the rails sit the way the profile sits in the ground.
A full circle, because 359° and 1° are neighbours. Only the direction indicator is blue.
A half arc, because a fire index reads as how far up the scale, not where in a band. The rating is named in text under the number.
unit so it sets smaller than the reading.display to round the reading without moving the arc.ariaLabel naming the reading and its band, so it’s heard as one image.| Prop | Type | Default | Description |
|---|---|---|---|
| value | number | — | The reading. The arc clamps to min and max. |
| min / max | number | — | Scale ends: 0–20 for Delta-T, 0–50 for Temperature. |
| zones | GaugeZone[] | — | Bands as from, to and color. DELTA_T_ZONES or TEMP_ZONES. |
| size | number · 'sm' | 'md' | 'lg' | 160 · 150 · md | Px for dial and compass. WFireIndex takes sm, md or lg. |
| trackW | number | 22 | Track thickness in viewBox units. |
| contained | boolean | false | Pads the box so edge labels stay inside it. |
| unit | string | — | WGaugeDial. Suffix after the reading, such as °C. |
| display | string | — | Printed reading, when it differs from value. |
| ariaLabel | string | — | Names the dial and its band for screen readers. |
| animate | boolean | false | Sweeps the arc, or springs the needle, on mount. |
| replay | number | 0 | Increment to run the entrance again. |
| bearing | number | 210 | WCompass. Needle direction in degrees. |
| speed / unit | string | — | WCompass. Centre label and sub-label, such as SSW, 210°. |
| idPrefix | string | — | WCompass. Unique per page, for its shadow filter. |
| rows | SoilDepth[] | — | WSoilMoisture. Depth, time, fill, refill point, value, colour. |
| fdi | number | — | WFireIndex. The index reading. Sets the rating and arc. |
| indexType | 'FDI' | 'FFDI' | 'GFDI' | 'FDI' | WFireIndex. Index name printed under the reading. |
| showValue | boolean | true | WFireIndex. Prints the reading and index name inside the arc. |
| Token | Value | Where it lands |
|---|---|---|
| RAMP.green[800] | #019939 | Preferred band, and soil above refill. |
| RAMP.squash[800] | #EC980C | Marginal bands, and soil below refill. |
| RAMP.red[800] | #E12121 | Top band, and soil below stress. |
| RAMP.teal[700] | #0692BC | Temperature’s cold band. |
| RAMP.grey[400] | #ECECED | Dial track and compass face edge. |
| RAMP.grey[200] | #F5F5F5 | Soil track, compass centre, fire track. |
| RAMP.grey[300] | #F1F1F1 | Fire arc ticks. |
| RAMP.grey[600] / [700] | #DCDCDE · #C9C9CC | Compass ticks. |
| RAMP.blue[900] | #00AEEF | Compass indicator, fire Moderate arc. |
| RAMP.green[600] · [900] | #3BBA6A · #018030 | Fire Low arc and reading. |
| T.brandDeepInk | #1877F2 | Fire Moderate reading. |
| RAMP.squash[700] · [1000] | #FFAB1F · #9D6508 | Fire High arc and reading. |
| global-orange-700 · 900 | #FF6B34 · #C44518 | Fire Extreme arc and reading. |
| RAMP.red[700] · [800] | #F53535 · #E12121 | Fire Catastrophic arc and reading. |
| T.ink | #0A090B | Dial reading, compass centre, soil values. |
| T.ink4 | #4F4D55 | Edge labels, units, compass letters, secondary text. |
| T.white | #FFFFFF | Dial marker, compass face, refill marker, value pill. |
| FS.xl4 · W.extrabold | 30px · 700 | Dial reading. |
| FS.base · W.semibold | 14px · 500 | Dial unit. |
| FS.xs · W.semibold | 11px · 500 | Edge labels, held at 11px at any size. |