Charts
Data visualisation
Fourteen chart types built with Recharts and the shadcn chart wrapper, all drawing from the five-colour Violet Bloom palette. Tooltips, legends and dark mode follow the theme automatically.
The palette
Five chart tokens, used in this order. Keep the order consistent across a dashboard so a colour always means the same thing.
Trend over time
Line and area charts. Reach for these whenever the x-axis is time.
Comparison
Bars compare discrete categories. Stack them for composition, lay them flat when labels are long.
Composition
Parts of a whole. Keep the number of slices low — four or five, then an 'other'.
Relationships & profiles
For correlation and multi-dimensional comparison.
Hand-rolled marks
Not everything needs a charting library. These are plain CSS and SVG — crisper at small sizes and far cheaper.