{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "extends": "none",
  "name": "line-chart-custom-colors-example",
  "title": "Line Chart Custom Colors",
  "description": "line-chart-custom-colors-example",
  "registryDependencies": [
    "https://intentui.com/r/card",
    "https://intentui.com/r/line-chart",
    "https://intentui.com/r/use-mobile"
  ],
  "files": [
    {
      "path": "src/components/examples/visualizations/line-chart/line-chart-custom-colors-example.tsx",
      "content": "\"use client\"\n\nimport { useMemo } from \"react\"\nimport { Card, CardContent, CardDescription, CardHeader, CardTitle } from \"@/components/ui/card\"\nimport { LineChart } from \"@/components/ui/line-chart\"\nimport { useIsMobile } from \"@/hooks/use-mobile\"\n\ntype EngagementPoint = {\n  day: string\n  likes: number\n  comments: number\n  shares: number\n}\n\nexport default function LineChartCustomColorsDemo() {\n  const isMobile = useIsMobile()\n  const engagementData: EngagementPoint[] = useMemo(\n    () =>\n      Array.from({ length: 7 }, (_, i) => ({\n        day: `Day ${i + 1}`,\n        likes: Math.floor(100 + Math.random() * 300),\n        comments: Math.floor(20 + Math.random() * 80),\n        shares: Math.floor(10 + Math.random() * 50),\n      })),\n    []\n  )\n\n  return (\n    <Card>\n      <CardHeader>\n        <CardTitle>Engagement last 7d</CardTitle>\n        <CardDescription>\n          Tracks likes, comments, and shares during the most recent 7-day period.\n        </CardDescription>\n      </CardHeader>\n      <CardContent>\n        <LineChart\n          containerHeight={isMobile ? 200 : 300}\n          data={engagementData}\n          dataKey=\"day\"\n          xAxisProps={{ interval: 0 }}\n          config={{\n            likes: { label: \"Likes\", color: \"var(--color-pink-500)\" },\n            comments: {\n              label: \"Comments\",\n              color: \"var(--color-blue-500)\",\n            },\n            shares: {\n              label: \"Shares\",\n              color: \"var(--color-emerald-500)\",\n            },\n          }}\n        />\n      </CardContent>\n    </Card>\n  )\n}\n",
      "type": "registry:page",
      "target": "app/line-chart-custom-colors-example/page.tsx"
    }
  ],
  "type": "registry:page"
}