Rebar UI

1.0

opinion

BubbleChart

A scatter chart with a third value drawn as marker size.

ProjectsBudget (x), percent done (y), hours logged (size)
25%46%67%87%108%£-1k£20k£40k£60k£80k
Harbour rebrandTideline mobileCrew interviewsRota exportDepot signage
Budget vs. progress, sized by hours
One series with trendline
25466787108£-1k£20k£40k£60k£80k
Projects
All projects

In context

PortfolioWhere the money and the hours are going
PortfolioFive projects, this quarter
25%46%67%87%108%£-1k£20k£40k£60k£80k
Harbour rebrandTideline mobileCrew interviewsRota exportDepot signage
Budget vs. progress, sized by hours

Tideline mobile has the most hours and the second-largest budget; Crew interviews is small and behind.

Props

PropTypeRequiredDefault
seriesBubbleChartSeries[]Yes—
titlestring | undefinedNo—
ariaLabelstring | undefinedNo—
heightnumber | undefinedNo320
xFormat((v: number) => string) | undefinedNo(v: number) => Math.round(v).toLocaleString()
yFormat((v: number) => string) | undefinedNo(v: number) => Math.round(v).toLocaleString()
trendlineboolean | undefinedNo—
bionicboolean | undefinedNo—
bionicOptionsBionicOptions | undefinedNo—

Trendline

Set trendline to fit a dashed ordinary-least-squares line per series over its real (x, y) points, drawn from the series' own min to max x.

data-rebar-* attributes

data-rebar-component="bubble-chart" on the root <figure>; 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 @ant-design/charts, a separate package built on G2Plot); there's no direct 1:1 antd component mapping for a bubble chart.