Skip to content
Lists

Spark table

A real table with a trailing sparkline and a signed delta.

MetricValueTrendChange
visitors4,368+133
pageviews10,240+345
visits4,987+135
events672+14

Props

PropertyTypeDefaultDescription
dataSparkRow[]Rows carry a series alongside the scalars, which ChartDatum cannot express — hence its own row type.
labelKeystring"label"First column.
dataKeystring"value"Numeric column.
trendKeystring"trend"Field holding the row's series. Rows without one omit the spark.
deltaKeystring"delta"Signed change, coloured by sign.
labelstring"Name"Header for the first column.
variant"sparkline" | "bars" | "area" | "plain""sparkline"How the trend column draws: a stroke, one bar per point, or a filled stroke. plain drops the column for a dense provider-style list.
classNamestringOuter wrapper.