Default
A sparkline is a compact, word-sized chart with typographic scale, for data-dense layouts (text, tables, cards, dashboards).
Marks
Mark variants include line, area, gradient, column, and winloss to support trend and outcome signals.
Status
Communicates the intent and semantic meaning of an element to help users understand the outcome of their actions.
Inline With Text
This week's lane keeping safety score trend
Sparklines inherit font size and flow inline with surrounding text and metrics.
Data Grid
Embed sparklines in grid cells to add compact trend context to tabular data.
Explicit Size
Explicit size tokens set fixed sparkline height independent of text context.
Default Size
heading
body
label sm
Without a size attribute, height scales with the parent text size for typographic alignment.
Interpolation
Controls how the chart connects intermediate values between points in a data series. Defaults to linear.
Symbols
Symbols denote specific data points in line, area, and gradient marks.
Fixed Data Domain
Fixed min and max values define a shared vertical domain to ensure comparability across adjacent sparklines.
Zero Line
The chart renders a zero baseline when the data includes both positive and negative values.
Interval Length
Controls spacing between points in a line, in em (1 = chart height). Defaults to 0.6.
Custom Styling
CSS custom properties are available to adjust dimensions and visual styling.