073
Twelve months of stacked bars you can re-cut by measure and by slice: segments settle at their new heights, hovering a month breaks it down, and the table below lights up the series under your pointer.
akabar chart·breakdown
Run this in any project set up for the shadcn CLI. It copies the Stacked Explorer source into your components folder, so the code is yours to change.
npx shadcn@latest add https://devl.dev/r/stacked-explorer.jsonImport it and render it. Every prop has a typed default, so it works straight away, and you pass your own data when you’re ready.
import { StackedExplorer } from "@/components/stacked-explorer";
export default function Page() {
return <StackedExplorer />;
}A free React component in the Numbers collection, written in TypeScript with Tailwind CSS on coss ui. MIT licensed.
Read from the Stacked Explorer source. Everything is optional unless it says required.
| Prop | Type | Default |
|---|---|---|
| title | string | "Breakdown" |
| data | ExplorerData | defaultData |
| defaultMeasure | string | — |
| defaultSlice | string | — |
| locale | string | "en-US" |
| className | string | — |