One measure for one group against a wider one: a team's figure as a bar, the company's as a tick, both printed beside it. Stack several for "Against the company".
import { CompareBar } from '@redrob-labs/ui';
No rendering: the delivery ships no preview case for this one
| Prop | Type | Notes |
|---|---|---|
label required |
React.ReactNode |
|
value |
number | null |
|
compare |
number | null |
The figure to compare against, drawn as a tick on the same track. |
compareLabel |
string |
"Company" by default; printed before the comparison figure. |
max |
number |
|
format |
(v: number | null | undefined) => string |
|
className |
string |