Calm motion: animations on this site only fade, with no movement
Rose chart
Wedges of equal angle whose size is the value
Shows values that go around a cycle, such as the months of a year or the hours of a day. Each item gets a wedge of the same angle, and a bigger value makes a bigger wedge. This form is also called a polar area chart. For parts of one whole, use the donut chart.
Basic
| Item | Value |
|---|---|
| Jan | 62k |
| Feb | 58k |
| Mar | 49k |
| Apr | 41k |
| May | 33k |
| Jun | 28k |
| Jul | 26k |
| Aug | 30k |
| Sep | 37k |
| Oct | 45k |
| Nov | 57k |
| Dec | 66k |
datais a list of items, clockwise from the top. Each item has alabel, avalue, and an optionalcolor.- The area of a wedge follows the value, so the radius grows with the square root of the value. The dashed rings mark a quarter, a half, three quarters, and all of the largest value.
colorsets the color of the wedges (defaultchart-1). An item with its owncolorstands out.sizesets the width of the chart in pixels (default 300), andformatsets the text of a value.- For screen readers, the chart is a table.
labelnames the table. Change the column names withlabelsor a label pack:itemandvalue.
Usage
ts
import { BlessRoseChart } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
data* | BlessRoseItem[] | — | one wedge for each item, clockwise from the top |
color | string | "chart-1" | |
size | number | 300 | the width of the chart in pixels |
format | ((v: number) => string) | — | |
label | string | "Chart" | names the chart and its table for screen readers |
labels | Partial<{ item: string; value: string; }> | — |