238
A record-month moment: a little ball hops up a staircase of bars, each one springing up under it as the total ticks over, and plants a flag on the peak.
akachart·growth·revenue
Run this in any project set up for the shadcn CLI. It copies the Growth Chart source into your components folder, so the code is yours to change.
npx shadcn@latest add https://devl.dev/r/growth-chart.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 { GrowthChart } from "@/components/growth-chart";
export default function Page() {
return <GrowthChart />;
}A free React illustration in the Celebrations collection, written in TypeScript with Tailwind CSS on coss ui. MIT licensed.
Read from the Growth Chart source. Everything is optional unless it says required.
| Prop | Type | Default |
|---|---|---|
| data | GrowthChartPoint[] | defaultData |
| title | string | "Record month" |
| format | (value: number) => string | (v) => `$${Math.round(v).toLocaleString("en-US")}` |
| hue | GrowthChartHue | "emerald" |
| loop | boolean | true |
| className | string | — |