{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "ex-rounded-cells-heatmap-chart",
  "registryDependencies": [
    "@evilcharts/recharts-heatmap-chart"
  ],
  "files": [
    {
      "path": "src/registry/examples/recharts/ex-rounded-cells-heatmap-chart.tsx",
      "content": "\"use client\";\n\nimport {\n  EvilHeatmapChart,\n  type ChartConfig,\n  type HeatmapDatum,\n} from \"@/registry/charts/recharts-heatmap-chart\";\n\n// One quarter of daily sales, so the larger cells have room to breathe.\nfunction buildSales(seed: number): HeatmapDatum[] {\n  let state = seed;\n  const random = () => {\n    state = (state * 1664525 + 1013904223) % 4294967296;\n    return state / 4294967296;\n  };\n  const start = Date.UTC(2025, 9, 1);\n  const data: HeatmapDatum[] = [];\n  for (let i = 0; i < 92; i++) {\n    if (random() < 0.12) continue;\n    data.push({\n      date: new Date(start + i * 86_400_000).toISOString().slice(0, 10),\n      value: Math.round(random() * 4200) + 300,\n    });\n  }\n  return data;\n}\n\nconst data = buildSales(5);\n\nconst chartConfig = {\n  sales: {\n    label: \"Sales\",\n    colors: {\n      light: [\"#fed7aa\", \"#fb923c\", \"#ea580c\", \"#9a3412\"],\n      dark: [\"#7c2d12\", \"#c2410c\", \"#f97316\", \"#fdba74\"],\n    },\n  },\n} satisfies ChartConfig;\n\nexport function EvilExampleHeatmapChart() {\n  return (\n    <EvilHeatmapChart\n      className=\"h-full w-full p-4\"\n      data={data}\n      config={chartConfig}\n      range={[\"2025-10-01\", \"2025-12-31\"]}\n    >\n      <EvilHeatmapChart.Cell dataKey=\"sales\" radius={6} gap={5} /> {/* [!code highlight] */}\n      <EvilHeatmapChart.MonthLabel />\n      <EvilHeatmapChart.DayLabel />\n      <EvilHeatmapChart.Tooltip valueFormatter={(value) => `$${value.toLocaleString()}`} />\n      <EvilHeatmapChart.Legend />\n    </EvilHeatmapChart>\n  );\n}\n",
      "type": "registry:block"
    }
  ],
  "type": "registry:block"
}