Chart

Sparkline

Web supportediOS supportedAndroid supported

A tiny trend shape without axes, tooltip or legend.

uPlot, for dense series · View source

When to use

Use inside a table row or card as context, never for exact lookup.

Props

The chart's own props first, then the shared ones this form reads.

PropTypeDefaultDescription
values*number[]Ordered values used to draw the trend.
slotnumberPalette slot used for the stroke.
colorstringExplicit stroke color overriding the palette.
classNamestringCSS class applied to the chart root.
heightnumber32Plot height in px. A chart never measures its own content, so this is what reserves the space.
isLoadingbooleanfalseHeld true while the data is in flight. Shows the matching skeleton, then cross-fades into the plot.
surfaceChartSurfaceThe container the plot sits in — background, border, corner radius, padding. Merges over Chart.Provider, key by key.