Spark UI

Layer Stack

A stacked area chart where legend chips toggle layers and the whole stack re-flows, with a 100% mode and hover breakdown.

Interactive Stage Preview

Customize

5 options
Accent Color
Layers
4
Points
14
Smooth Curves
Animation Speed
100

Get this component

Copies the component into your project, installs what it needs, and pulls down its images. Nothing to download by hand.

npx spark-ui-registry@latest add layer-stack

Writes to components/spark-ui/ by default; override with --dir. The file is yours to edit; there is no package to keep in sync.

Or let an AI agent pull it in for you. Set up the MCP server
PropertyTypeDefaultDescription
theme'dark' | 'light''dark'Colour scheme of the card.
compactbooleanfalseShrinks the card to a smaller fixed height.
colorstring (hex)'#ff8a3d'Base color; layers use its shades.
layersnumber4Number of stacked series.
pointsnumber14Samples along the x axis.
smoothbooleantrueUse spline curves instead of straight segments.
speednumber100Playback speed of entry and transition animations, as a percentage.