Preview
Loading…
Installation
CLI
Also needs
npx @sonojs/ui@latest add chart chart-styles select && npm i rechartsUsage
import
page.tsx
Scrub
scrub highlights the active category and dims the rest (default true). Pass false to keep the idle last-category view.
scrub
Plot direction
plotDir only flips the plot (bars / axes). Header and legend still follow page dir. Omit it to match the page (default).
plotDir
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| scrub | boolean | true | Hover, touch, and keyboard scrub — dim inactive categories and update the metric header. |
| plotDir | "ltr" · "rtl" | page dir | Plot-only layout (bar sides / axes). Header and legend keep following page dir. |