Simulates prefers-reduced-motion for the demo. Off follows your system setting.
Steps focus through the demo with ] and [. Tab, arrows, and Escape stay native so the component behaves as shipped.
1
| Petal | Value |
|---|---|
| Happy | 12 |
| Calm | 7 |
| Excited | 10 |
| Curious | 5 |
| Tired | 4 |
| Proud | 9 |
Soft rounded petals around a center, each grown to the size of its value.
npx shadcn@latest add ikislay/pixel-ui/rose-chartimport { RoseChart } from "@/components/ui/rose-chart"const data = [{ label: "Happy", value: 12 },{ label: "Calm", value: 7 },{ label: "Excited", value: 10 },{ label: "Tired", value: 4 },]export function Demo() {return <RoseChart label="How the release felt" data={data} />}
1// Loading…
Options you can pass to customize this component.
data*{ label: string; value: number; color?: string }[]One petal per entry, clockwise from the top. Colors follow the chart palette and repeat after five.
label*stringNames the chart for screen readers and captions its data table.
format(value: number) => stringFormats values wherever the chart shows them. Defaults to short numbers like 12.4K.
classNamestringMerged onto the root element.