CLI setup for chart code on this page
If you copy code from the Snippet or Component tabs, run the command below first so your project has the AfnoUI base layout and UI primitives those snippets expect (utilities, Tailwind tokens, shared chart helpers, and so on).
If you install a chart with afnoui add charts/<type>/<variant> instead, you do not need this step—that command pulls the registry bundle and dependencies for that variant on its own.
Install with:
npx afnoui initArea chart variants
Full area chart variants including sparkline, range, stepped, stacked, and glow.
Switch direction for RTL/LTR rendering.
Install with:
npx afnoui add charts/area/defaultAreaChart - Default
Default
Install with:
npx afnoui add charts/area/gradientAreaChart - Gradient
Gradient
Install with:
npx afnoui add charts/area/stackedAreaChart - Stacked
Stacked
Install with:
npx afnoui add charts/area/steppedAreaChart - Stepped
Stepped
Install with:
npx afnoui add charts/area/sparklineAreaChart - Sparkline
Sparkline
Install with:
npx afnoui add charts/area/rangeAreaChart - Range
Range
Install with:
npx afnoui add charts/area/glowAreaChart - Glow