{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "chart-radial-progress",
  "title": "Radial Progress",
  "description": "Plan limits as concentric rings, each with its value at the start.",
  "dependencies": [
    "@wick-charts/react@^0.9.2"
  ],
  "registryDependencies": [
    "card",
    "https://wick-charts.eeff.io/r/wick-chart.json"
  ],
  "files": [
    {
      "path": "blocks/chart-radial-progress.tsx",
      "content": "\"use client\"\n\nimport { useEffect, useState } from \"react\"\n\nimport {\n  type PieSliceData,\n  RadialProgressSeries,\n  startLabels,\n} from \"@wick-charts/react\"\n\nimport {\n  Card,\n  CardContent,\n  CardDescription,\n  CardHeader,\n  CardTitle,\n} from \"@/components/ui/card\"\nimport { WickChart } from \"@/components/ui/wick-chart\"\n\nconst TICK_MS = 2000\n\nconst initialUsage: PieSliceData[] = [\n  { label: \"Seats\", value: 83 },\n  { label: \"API calls\", value: 64 },\n  { label: \"Storage\", value: 41 },\n]\n\nconst radialOptions = { endAngle: 270, labels: startLabels() }\n\n// Demo feed: usage grows a little every tick and starts over at the limit.\nfunction addUsage(items: PieSliceData[]): PieSliceData[] {\n  return items.map((item) => {\n    const value = item.value + Math.random() * 1.5\n\n    return { ...item, value: value > 100 ? 20 : value }\n  })\n}\n\nexport function ChartRadialProgress() {\n  const [usage, setUsage] = useState(initialUsage)\n\n  useEffect(() => {\n    const timer = setInterval(() => setUsage(addUsage), TICK_MS)\n\n    return () => clearInterval(timer)\n  }, [])\n\n  return (\n    <Card>\n      <CardHeader>\n        <CardTitle>Plan usage</CardTitle>\n        <CardDescription>\n          Share of the Pro plan limits, this month\n        </CardDescription>\n      </CardHeader>\n      <CardContent>\n        <WickChart className=\"aspect-auto h-[260px]\">\n          <RadialProgressSeries data={usage} options={radialOptions} />\n        </WickChart>\n      </CardContent>\n    </Card>\n  )\n}\n",
      "type": "registry:component"
    }
  ],
  "categories": [
    "charts",
    "dashboard"
  ],
  "type": "registry:block"
}