Waffle chart

Core

A ten by ten unit chart where every cell is one percent, and cells fly to their new group when the data changes.

pnpm dlx shadcn@latest add https://wui.alann.works/r/waffle-chart.json

Completion. Shipped 82%, Planned 18%.

Completion
CategoryValueShareCells
Shipped8282%82
Planned1818%18

API Reference

PropTypeDefault
data*WaffleCategory[]required
label*stringrequired
unitstring—
formatValue(value: number, category: WaffleCategory) => string—
rowsnumber—
columnsnumber—
accentKeystring | null—
activeKeystring | null—
defaultActiveKeystring | null—
onActiveChange(key: string | null) => void—
legendboolean—
decimalsnumber—
emptyLabelstring—
refRef<HTMLElement>—
classNamestring—
Categories
data
Dependencies
motion