Search for a command to run...
Weekly Activity
Visitors and signups by day
Used for time-series trends — daily metrics, longitudinal comparisons, and "how is X changing over time" answers from the AI.
showDotsshowLabelsnpx shadcn@latest add https://ui.heygaia.io/r/line-chart.jsonimport { LineChart } from "@/components/ui/line-chart";
const data = [
{ day: "Mon", visitors: 320, signups: 24 },
{ day: "Tue", visitors: 410, signups: 31 },
{ day: "Wed", visitors: 380, signups: 28 },
];
export default function Example() {
return (
<LineChart
data={data}
xKey="day"
yKeys={["visitors", "signups"]}
title="Weekly Activity"
/>
);
}| 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 |
| showDots | boolean | true | Render point markers on each line |
| showLabels | boolean | false | Render inline labels above points |