Search for a command to run...
Growth
Cumulative users and revenue
Used for cumulative metrics, volume-over-time visuals, and AI-generated "growth" or "trend" responses where the area under the curve carries meaning.
type="natural" for soft, organic curvesnpx shadcn@latest add https://ui.heygaia.io/r/area-chart.jsonimport { AreaChart } from "@/components/ui/area-chart";
const data = [
{ month: "Jan", users: 1200, revenue: 4200 },
{ month: "Feb", users: 1480, revenue: 5100 },
{ month: "Mar", users: 1620, revenue: 4800 },
];
export default function Example() {
return (
<AreaChart
data={data}
xKey="month"
yKeys={["users", "revenue"]}
title="Growth"
/>
);
}| Prop | Type | Default | Description |
|---|---|---|---|
| data | Array<Record<string, string | number>> | - | Chart data rows |
| xKey | string | - | Key on each row used for the X axis |
| yKeys | string | string[] | - | One or more numeric keys to plot |
| title | string | - | Card title |
| description | string | - | Card description |
| footer | string | - | Optional footer text |
| colors | string[] | CHART_COLORS | Custom palette for series |