Rebar UI

1.0

synthetic

CandlestickChart

One wick-and-body candle per period: open, high, low, close.

Open tasksDaily range of open tasks, 20 to 24 Oct
39.2042.1045.0047.9050.80Mon 20Tue 21Wed 22Thu 23Fri 24
Open tasks, week of 20 Oct
Two days
42.4444.4746.5048.5350.56Mon 20Tue 21
No data
No data
Default colours
39.4441.4743.5045.5347.56Wed 22Thu 23Fri 24

In context

Weekly reviewNext to the week's numbers
Open tasks
39.2042.1045.0047.9050.80Mon 20Tue 21Wed 22Thu 23Fri 24
This week

Closed Friday at

43

5 fewer than Monday's open.

Props

PropTypeRequiredDefault
dataCandlestickDataPoint[]Yes—
titlestring | undefinedNo—
ariaLabelstring | undefinedNo—
heightnumber | undefinedNo320
upColorstring | undefinedNovar(--rebar-chart-up, var(--rebar-color-success, #2e7d32))
downColorstring | undefinedNovar(--rebar-chart-down, var(--rebar-color-danger, #d32f2f))
yFormat((v: number) => string) | undefinedNo(v: number) => v.toFixed(2)
bionicboolean | undefinedNo—
bionicOptionsBionicOptions | undefinedNo—

Wick and body

Each entry draws a thin wick from low to high and a body from open to close, in upColor when the period closed at or above its open and downColor otherwise. It is a record of real periodic values; for the spread of a dataset use BoxPlot.

data-rebar-* attributes

data-rebar-component="candlestick-chart" on the root <figure>.

Migrating to Ant Design

Not codemod-covered. AntD ships no chart components of its own; a candlestick chart typically migrates to a dedicated library like lightweight-charts.