Adres
Playground/ docs
Components

Bar Graph

Horizontal and vertical bars across all size scales, sharing a visual idiom with Activity Rings.

Bar Graph

Horizontal bars

Each bar fills to value / max. Pass max explicitly when bars are parts of a known whole (e.g. team headcount); omit it to let the tallest bar reach 100 % for relative comparison. The track uses the same colour at 15 % opacity — the same idiom as Activity Rings so both components read as one visual system.

Employees · 150

Compliant
15%23
On Track
64%96
Not Started
15%22
At Risk
4%6

Sizes — sm · md · lg

The size prop scales bar thickness and the type used for labels and stats simultaneously. Use sm inside dense dashboards, lg as a hero metric.

sm

Compliant
15%23
On Track
64%96
Not Started
15%22
At Risk
4%6

md

Compliant
15%23
On Track
64%96
Not Started
15%22
At Risk
4%6

lg

Compliant
15%23
On Track
64%96
Not Started
15%22
At Risk
4%6

Vertical bars

Set direction="vertical" for column charts. Percentage and count sit above the bar; the label anchors below. Any Tailwind background class works for color — semantic tokens or the chart palette used by Activity Rings.

sm

15%23
Compliant
64%96
On Track
15%22
Not Started
4%6
At Risk

md

15%23
Compliant
64%96
On Track
15%22
Not Started
4%6
At Risk

lg

15%23
Compliant
64%96
On Track
15%22
Not Started
4%6
At Risk