Rebar UI

1.0

opinion

IndexChart

A line chart that rebases every series to 100, so different scales compare fairly.

Spend since JuneThree projects, each indexed to its own June figure
242985728471121JunJulAugSepOct100Harbour rebrandTideline mobileDepot signage
Spend, indexed to 100
Two series
67188308429550JunJulAugSepOct100Harbour rebrandTideline mobile
Harbour and mobile
Index to 1000
24429855725846611206JunJulAugSepOct1000Depot signage
Base 1000
Flat series
9598100103105JunJulAugSepOct100Rota export
Nothing spent

In context

Budget reviewGrowth in spend, whatever the project size
Spend since JuneHarbour rebrand is at £46,500 of £48,200
Indexed
242985728471121JunJulAugSepOct100Harbour rebrandTideline mobileDepot signage
Spend, indexed to 100

Signage has grown tenfold from a small start; mobile is the biggest but the slowest mover.

Props

PropTypeRequiredDefault
seriesIndexChartSeries[]Yes—
xLabelsstring[]Yes—
titlestring | undefinedNo—
ariaLabelstring | undefinedNo—
heightnumber | undefinedNo300
labelStepnumber | undefinedNo1
baseValuenumber | undefinedNo100
filterableboolean | undefinedNo—
trendlineboolean | undefinedNo—
bionicboolean | undefinedNo—
bionicOptionsBionicOptions | undefinedNo—

data-rebar-* attributes

data-rebar-component="index-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 pre-computes the same index-100 rebasing and feeds it to whatever charting library the target project already uses.