Rebar UI

1.0

opinion

AreaChart

A multi-series area chart over an ordered x-axis.

Weekly throughputTasks opened and done, 3 Aug to 19 Oct
12182429353 Aug17 Aug31 Aug14 Sep28 Sep12 Oct19 OctOpenedDone
Tasks per week
Trendline
222528313414 Sep21 Sep28 Sep5 Oct12 Oct19 OctDone
Done, last six weeks
Short run
242729313428 Sep5 Oct12 Oct19 OctDone
Last four weeks

In context

Team pageThe chart under the headline figures
ThroughputQuarter to date
Open tasks
42
Due soon
7
Shipped
18
12182429353 Aug17 Aug31 Aug14 Sep28 Sep12 Oct19 OctDone
Tasks done per week

Props

PropTypeRequiredDefault
seriesAreaChartSeries[]Yes—
xLabelsstring[]Yes—
titlestring | undefinedNo—
ariaLabelstring | undefinedNo—
heightnumber | undefinedNo300
labelStepnumber | undefinedNo1
trendlineboolean | undefinedNo—
bionicboolean | undefinedNo—
bionicOptionsBionicOptions | undefinedNo—

Trendline

Set trendline to fit and draw a dashed ordinary-least-squares line per visible series over the filled area.

data-rebar-* attributes

data-rebar-component="area-chart" on the root <figure>; the caption, when title is set, carries data-rebar-part="title"; data-rebar-part="trendline" on a fitted trendline.

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 chart against whichever charting library the target project already uses.