Controls

Rose Chart

Effect
Preview
Reduced motion

Simulates prefers-reduced-motion for the demo. Off follows your system setting.

Keyboard stepping

Steps focus through the demo with ] and [. Tab, arrows, and Escape stay native so the component behaves as shipped.

Rose Chart

How the release felt
PetalValue
Happy12
Calm7
Excited10
Curious5
Tired4
Proud9

Rose Chart

Soft rounded petals around a center, each grown to the size of its value.

Installation

npx shadcn@latest add ikislay/pixel-ui/rose-chart

How to use

import { 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} />
}

Source Code

// Loading…

Props

Options you can pass to customize this component.

Prop
Type
Description
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*
string

Names the chart for screen readers and captions its data table.

format
(value: number) => string

Formats values wherever the chart shows them. Defaults to short numbers like 12.4K.

className
string

Merged onto the root element.