Rebar UI

1.0

opinion

Histogram

Bins raw values into equal-width buckets and draws the count in each.

Cycle timeDays from To do to Done, 20 finished tasks
02571013.25.37.59.711.814
Days from To do to Done
Two series
0134613.25.37.59.711.814DesignEng
Design and Eng
Few values
0122323.556.58
Last week
Four bins
037101314.37.510.814
Coarse

In context

Delivery reviewThe spread behind the weekly numbers
How long tasks takeLast 12 weeks
↑ 4 vs last month
02571013.25.37.59.711.814
Days from To do to Done

Most tasks close within four days; a few long ones pull the tail out to two weeks.

Props

PropTypeRequiredDefault
seriesHistogramSeries[]Yes—
titlestring | undefinedNo—
ariaLabelstring | undefinedNo—
heightnumber | undefinedNo320
binCountnumber | undefinedNo—
xFormat((v: number) => string) | undefinedNo(v: number) => (Number.isInteger(v) ? v.toLocaleString() : v.toFixed(1))
yFormat((v: number) => string) | undefinedNo(v: number) => Math.round(v).toLocaleString()
filterableboolean | undefinedNo—
bionicboolean | undefinedNo—
bionicOptionsBionicOptions | undefinedNo—

data-rebar-* attributes

data-rebar-component="histogram" on the root <figure>; data-rebar-part="mark" on each bin's bar.

Migrating to Ant Design

Not codemod-covered — AntD ships no chart components of its own; a migration typically feeds the same raw sample values to whatever charting library's own histogram/binning helper the target project uses.