{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "v-chart-9",
  "description": "Scatter plot of scores",
  "registryDependencies": [
    "@cnippet/chart"
  ],
  "files": [
    {
      "path": "registry/default/variants/v-chart-9.tsx",
      "content": "// title: Scatter plot of scores\n\"use client\";\n\nimport { CartesianGrid, Scatter, ScatterChart, XAxis, YAxis } from \"recharts\";\nimport {\n  type ChartConfig,\n  ChartContainer,\n  ChartTooltip,\n  ChartTooltipContent,\n} from \"@/registry/default/ui/chart\";\n\nconst chartData = [\n  { hours: 8, score: 55 },\n  { hours: 10, score: 62 },\n  { hours: 12, score: 65 },\n  { hours: 15, score: 71 },\n  { hours: 16, score: 72 },\n  { hours: 18, score: 75 },\n  { hours: 20, score: 78 },\n  { hours: 22, score: 80 },\n  { hours: 25, score: 82 },\n  { hours: 28, score: 85 },\n  { hours: 30, score: 88 },\n  { hours: 35, score: 92 },\n];\n\nconst chartConfig = {\n  score: { color: \"var(--chart-1)\", label: \"Score\" },\n} satisfies ChartConfig;\n\nexport function Pattern() {\n  return (\n    <ChartContainer className=\"min-h-52 w-full\" config={chartConfig}>\n      <ScatterChart\n        accessibilityLayer\n        margin={{ bottom: 20, left: 20, right: 16, top: 8 }}\n      >\n        <CartesianGrid />\n        <XAxis\n          axisLine={false}\n          dataKey=\"hours\"\n          label={{\n            offset: -8,\n            position: \"insideBottom\",\n            style: { fontSize: 11 },\n            value: \"Study hours\",\n          }}\n          tickLine={false}\n          tickMargin={8}\n          type=\"number\"\n        />\n        <YAxis\n          axisLine={false}\n          dataKey=\"score\"\n          domain={[40, 100]}\n          label={{\n            angle: -90,\n            offset: 0,\n            position: \"left\",\n            style: { fontSize: 11 },\n            value: \"Score\",\n          }}\n          tickLine={false}\n          type=\"number\"\n          width={36}\n        />\n        <ChartTooltip content={<ChartTooltipContent />} cursor={false} />\n        <Scatter data={chartData} fill=\"var(--color-score)\" />\n      </ScatterChart>\n    </ChartContainer>\n  );\n}\n",
      "type": "registry:block"
    }
  ],
  "meta": {
    "className": ""
  },
  "categories": [
    "chart"
  ],
  "type": "registry:block"
}