Concrete
data
Primitive

Sparkline

Tiny trend primitive rendered as line or bar SVG.

Sparklines show trend shape, not detailed analysis. Keep axes and legends in the surrounding data surface.

SparklineSparkline
Playground

Props in the URL.

Controls update query params directly, so every primitive state can be linked, rendered, and screenshotted deterministically.

Loading playground.
States

Rendered matrix.

Every state maps to the same render route through the `state` query param.

SparklineSparklineSparkline
Area

Line with soft area and endpoint.

/render state
Props

Public contract.

NameTypeDefaultDescription
values *readonly number[]-Series values normalized into the SVG viewport.
variant'line' | 'bar' | 'dot'lineSparkline mark type.
tone'sky' | 'neutral' | 'terminal' | 'error'skyLine, endpoint, area, and bar color.
areabooleanfalseAdds a soft area fill under a line sparkline.
showEndpointbooleantrueShows the last value dot for line sparklines.