Rebar UI

1.0

synthetic

Sparkline

A tiny trend line with no axes, made to sit inside a sentence, a table cell or a stat card.

Weekly throughputTasks done per week, 3 Aug to 19 Oct

Tasks done per week

Short
Flat
Larger
Falling

In context

Stat rowsOne line per measure, trend on the right
This week12-week trend

Open tasks

42

↓ 6 this week

Due soon

7

3 today

Done

33

↑ 4 vs last week

Props

PropTypeRequiredDefault
valuesnumber[]Yes—
colorstring | undefinedNovar(--rebar-color-primary, #0066cc)
widthnumber | undefinedNo120
heightnumber | undefinedNo32
ariaLabelstringYes—

data-rebar-* attributes

data-rebar-component="sparkline" on the root <svg> itself — unlike the other charts, there is no wrapping <figure> and no data-rebar-part.

Migrating to Ant Design

Not codemod-covered — AntD ships no chart components of its own (it recommends pairing with a separate charting library, e.g. @ant-design/charts, built on G2Plot); a migration reimplements this inline trend line against whichever charting library the target project already uses.