A bullet graph: where a figure is against its goal, and optionally against a comparison, in the space of a table cell. For a habit with a target ("Check, target 85%") rather than a figure that only goes up.
The full reading ("Now 72% · target 85% · Company 78%") is the accessible name, so the ticks are never the only way to tell the three apart.
import { BulletBar } from '@redrob-labs/ui';
No rendering: the delivery ships no preview case for this one
| Prop | Type | Notes |
|---|---|---|
value |
number | null |
|
target required |
number |
The goal. Drawn as a band up to it and a tick at it. |
compare |
number | null |
A comparison, e.g. the company figure. A thinner tick. |
compareLabel |
string |
|
valueLabel |
string |
"Now" by default. |
targetLabel |
string |
"target" by default. |
max |
number |
|
format |
(v: number | null | undefined) => string |
|
className |
string |