synthetic
BarChart
One bar per category, for a plain comparison of values.
Weekly throughputTasks completed per week, 3 Aug to 19 Oct, with a trendline
In context
Team pageHours logged this week, per person
This week
109 hours across four people.
Props
| Prop | Type | Required | Default |
|---|---|---|---|
bars | BarChartBar[] | Yes | — |
title | string | undefined | No | — |
ariaLabel | string | undefined | No | — |
height | number | undefined | No | 340 |
trendline | boolean | undefined | No | — |
bionic | boolean | undefined | No | — |
bionicOptions | BionicOptions | undefined | No | — |
Trendline
trendline fits a dashed least-squares line across the bars, with bar index as x. Use it only when the bars are an ordered sequence such as weeks.
data-rebar-* attributes
data-rebar-component="bar-chart" on the root <figure>; data-rebar-part="title" on the caption and "trendline" on a fitted line.
Migrating to Ant Design
Not codemod-covered. AntD ships no charts; reimplement against the charting library the target project uses (for example @ant-design/charts).