Rebar UI

1.0

opinion

StackedAreaChart

Bands stacked on top of each other, so the top edge is the total.

Tasks done per weekBy tag, 14 Sep to 19 Oct
0918273614 Sep21 Sep28 Sep5 Oct12 Oct19 Oct
Tasks done per week
Two series
0612192514 Sep21 Sep28 Sep5 Oct12 Oct19 Oct
Design and Eng
Single series
0134514 Sep21 Sep28 Sep5 Oct12 Oct19 Oct
Ops only
Two points
0011112 Oct19 Oct
This fortnight

In context

Delivery dashboardA card above the project table
Output33 tasks done in the week of 19 Oct
Up 4 on last week
0918273614 Sep21 Sep28 Sep5 Oct12 Oct19 Oct

Props

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

data-rebar-* attributes

data-rebar-component="stacked-area-chart" on the root <figure>; data-rebar-part="mark" on each point.

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 "stacked area" mode the target project uses.