{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "area-chart-kpi-01",
  "registryDependencies": [
    "card",
    "https://dashboardblocks.com/r/animated-number.json",
    "https://dashboardblocks.com/r/chart.json",
    "https://dashboardblocks.com/r/kpi.json",
    "https://dashboardblocks.com/r/trend.json"
  ],
  "files": [
    {
      "path": "registry/components/dashboardblocks/kpi/area-chart-kpi-01.tsx",
      "content": "'use client'\n\nimport {\n  TinyAreaChart,\n  ValueFormatter,\n} from '@/registry/components/dashboardblocks/chart'\nimport { KPI, KPIContent, KPIValue } from '@/registry/components/dashboardblocks/kpi'\nimport { Trend } from '@/registry/components/dashboardblocks/trend'\nimport { AreaProps } from 'recharts'\n\nimport { CardDescription } from '@/components/ui/card'\n\ninterface AreaChartKPI1Props {\n  trend: number\n  data: unknown[]\n  formatter?: ValueFormatter\n  height: number\n  areas: AreaProps[]\n  title: string\n  value: number\n}\n\nconst exampleProps: AreaChartKPI1Props = {\n  trend: 3.7,\n  data: [\n    {\n      label: 'Monday',\n      revenue: 4200,\n      profit: 1200,\n    },\n    {\n      label: 'Tuesday',\n      revenue: 5100,\n      profit: 1500,\n    },\n    {\n      label: 'Wednesday',\n      revenue: 2800,\n      profit: 800,\n    },\n    {\n      label: 'Thursday',\n      revenue: 5600,\n      profit: 1600,\n    },\n    {\n      label: 'Friday',\n      revenue: 6300,\n      profit: 1800,\n    },\n    {\n      label: 'Saturday',\n      revenue: 5400,\n      profit: 1400,\n    },\n    {\n      label: 'Sunday',\n      revenue: 6900,\n      profit: 2000,\n    },\n  ],\n  formatter: (value) => `$${value.toLocaleString()}`,\n  height: 120,\n  areas: [\n    {\n      dataKey: 'revenue',\n      fill: 'var(--color-chart-1)',\n      stroke: 'var(--color-chart-1)',\n    },\n    {\n      dataKey: 'profit',\n      fill: 'var(--color-chart-2)',\n      stroke: 'var(--color-chart-2)',\n    },\n  ],\n  title: 'Profit Margin',\n  value: 42.3,\n}\n\nconst AreaChartKPI1 = (props: AreaChartKPI1Props) => {\n  const { trend, data, formatter, height, areas, title, value } = props\n  return (\n    <KPI>\n      <KPIContent>\n        <div className='space-y-1'>\n          <div className='flex items-center justify-between'>\n            <CardDescription>{title}</CardDescription>\n            <Trend trend={trend} variant='badge' />\n          </div>\n          <KPIValue value={value} formatter={formatter} animated />\n        </div>\n        <TinyAreaChart data={data} areas={areas} formatter={formatter} height={height} />\n      </KPIContent>\n    </KPI>\n  )\n}\n\nexport {\n  AreaChartKPI1,\n  exampleProps as areaChartKpi1ExampleProps,\n  type AreaChartKPI1Props,\n}\n",
      "type": "registry:component"
    }
  ],
  "type": "registry:component"
}
