Chart

Token-themed chart primitives (container, config, tooltip, legend, data-table) composed with Recharts.

Stablev0.3.0@garn/ui/chart

Default

Area chart with accessible name, gradient fills, tooltip, legend + a ChartDataTable.

Revenue vs. profit — first half 2026
Show data table
Revenue and profit by month, first half 2026
MonthRevenueProfit
Jan$4,200$1,800
Feb$5,100$2,100
Mar$4,800$1,950
Apr$6,200$2,600
May$7,100$3,100
Jun$6,800$2,900

Bar

Stacked bars with rounded tops.

Line

Multi-series line with active dots.

Pie

Donut with a token-tinted slice palette.

Interactive Legend

Click the legend to toggle series (useChartVisibility).

Reference Line

A dashed target line via ChartReferenceLine.

States

Loading (ChartSkeleton) + empty (Empty).

Loading

No data

No data yet

Metrics appear once data starts flowing.

Formatting

Intl date/compact-currency axes + data labels.

Combo

Dual-axis composed bar + line.

Scatter

Two numeric axes; correlation.

Radar

Multi-axis comparison of two series.

Radial Bar

Concentric progress rings.

Funnel

Conversion funnel with stage labels.