Rebar UI

1.0

opinion

StepChart

A line drawn as steps, for values that hold until the next change.

Crew on shiftHeadcount at the three northern depots, launch week
6791112Mon 20Tue 21Wed 22Thu 23Fri 24Sat 25Crew
Crew on shift
Two series
34556Mon 20Tue 21Wed 22Thu 23Fri 24Sat 25NorthEast
Crew by depot
Formatted axis
£17.68£18.84£20£21.16£22.32Mon 20Tue 21Wed 22Thu 23Fri 24Sat 25Rate
Hourly rate
Trendline
6791112Mon 20Tue 21Wed 22Thu 23Fri 24Sat 25Crew
Crew on shift

In context

RotaA card on the rota page
Staffing this weekPayroll cut-off 28 Oct
Launch Fri
6791112Mon 20Tue 21Wed 22Thu 23Fri 24Sat 25Crew

Props

PropTypeRequiredDefault
seriesStepChartSeries[]Yes—
xLabelsstring[]Yes—
titlestring | undefinedNo—
ariaLabelstring | undefinedNo—
heightnumber | undefinedNo300
yFormat((v: number) => string) | undefinedNo(v: number) => Math.round(v).toLocaleString()
labelStepnumber | undefinedNo1
stepStepChartStep | undefinedNoafter
filterableboolean | undefinedNo—
trendlineboolean | undefinedNo—
bionicboolean | undefinedNo—
bionicOptionsBionicOptions | undefinedNo—

data-rebar-* attributes

data-rebar-component="step-chart" on the root <figure>; data-rebar-part="mark" on each point, "trendline" on a trendline when trendline is set.

Migrating to Ant Design

Not codemod-covered — AntD ships no chart components of its own; a migration typically maps directly to whatever charting library's own "step" line-interpolation option the target project uses.