The preview above is the live component gallery. Open it full size to switch between desktop and phone widths.
What it draws:
- Consecutive KPI blocks share one card, split by hairlines (the KPI strip). On screens 1024 px
and wider the strip draws every KPI at the tallest
heightamong them, so figures in one strip match, and a KPI set lower gets warning HM2028. Below 1024 px the strip wraps and each KPI keeps its ownheight. heightscales the figure and its sparkline together, in the Default theme (figure size / line height / sparkline height in px):compact22/28/21,default28/32/24,tall36/44/33 on desktop;compact18/24/20,default20/28/24,tall24/32/28 on phones.- The figure is regular weight with tabular numbers. Currency switches to compact notation
(
$6.14M) at 100,000 and plain numbers at 1,000,000, unless the metric’s format setscompact. - The change carries an arrow and a sign:
▲ +10.0%. Percent metrics change in percentage points:▲ +0.27 pp. The colour judges the change by the metric’sbetter:upanddowncolour a rise good or bad,neutralleaves it grey. Metrics withbetter: "down"say “lower is better”. - The note names the comparison: “vs $5.58M in Sep”.
- The sparkline sits 12 px below the note. Hover, tap or focus it and use the arrow keys to see each month’s value in the same tooltip as the line chart.
- An undefined value shows
—with “No data in this period”; a real zero shows$0. With no previous value the note says “No Sep data to compare” and there is no change.
Targets
target: plan names one of the metric’s targets. Three rows under the
note show it, the same three in every state so cards in a row line up and a card keeps its height
when a filter changes:
- The attainment, the value as a share of the pace while the period is in progress, else of the
target: “103% of pace” or “112% of target”, in the good or bad colour for a metric
whose
betterisupordown. Good or bad compares the value with the pace or target directly, so a loss of $50 beats a loss ceiling of $100, and a value equal to its target counts as good whichever way is better. On a narrow card “of pace” drops; the note below names the numbers. - A progress bar as wide as the larger of the value and the pace or target, with the pace or target
as a tick. Short of it, the fill runs to the value and the rest of the bar up to the tick is the
empty track. Past it, the fill spans the bar, the tick sits at target / value, and the fill past
the tick is the surplus, drawn in a lighter shade of the same colour. The colour follows good or
bad, so with
better: downa fill short of the ceiling is good and a surplus past it is bad. A zero target with a positive value is all surplus. With no value, a negative value or target, or a value and target that are both zero, there is no bar; the row keeps its height. - The pace and the target: “Pace $1.14M · FY plan $1.86M”. A note too long for the card is cut at the end, with the full text on hover.