Component 46 · Data visualization
Legend
Map data encoding to named series or thresholds.
Overview
Map data encoding to named series or thresholds. It converts domain state into an understandable, traceable and accessible interface contract.
When to use
Use HE/Legend when you need to map data encoding to named series or thresholds. Keep its role distinct from transport freshness, animal-health severity and model confidence.
Example
- Ambient
- Body
- Baseline
<ul class="he-legend"><li class="he-legend__item"><i class="he-legend__swatch"></i>Ambient</li><li class="he-legend__item"><i class="he-legend__swatch" style="--he-legend-color:var(--he-color-data-categorical-2)"></i>Body</li><li class="he-legend__item"><i class="he-legend__swatch" style="--he-legend-color:var(--he-color-data-categorical-3)"></i>Baseline</li></ul>Anatomy
1Identity
2Primary value
3State
4Evidence or action
Anatomy stays identical in Pasture and Atlantic. A responsive layout may wrap or stack parts, but reading order and focus order remain equivalent.
Variants and states
Variants
States
Accessibility
Interactive legend controls are buttons with pressed state and include marker shape in the name.
- Maintain a visible keyboard focus indicator and a logical focus sequence.
- Never rely on colour alone for operational, freshness or severity state.
- Keep touch targets at least 44 × 44 px unless the target is an inline text link.
Cross-platform contract
| Surface | Canonical name | Status |
|---|---|---|
| Figma | HE/Legend | stable |
| Web | .he-legend | implemented |
| Flutter | HeLegend | implemented |
| Token root | component.legend | generated |