{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "chart-point-marks",
  "title": "Chart point marks",
  "description": "Points in the cartesian frame, placed by both values: their extent, with a lone value in the middle of its range.",
  "dependencies": [],
  "registryDependencies": [
    "https://kinoui.com/r/chart-frame.json",
    "https://kinoui.com/r/chart-line-marks.json",
    "https://kinoui.com/r/chart-math.json"
  ],
  "files": [
    {
      "path": "registry/lib/chart-point-marks.ts",
      "content": "import type { MarkKind } from '@/registry/lib/chart-frame'\nimport { highestPlace, valueExtent, valueSpans } from '@/registry/lib/chart-line-marks'\nimport { numberExtent } from '@/registry/lib/chart-scale'\n\n/*\n * Points: each series' value in a row is a point, as a scatter's are. A\n * value axis that only points stand on fits them with no room to spare,\n * and a single value sits in the middle of a range around it.\n */\n\nconst pointMarks: MarkKind = {\n  mark: 'point',\n  stacks: false,\n  spans: ({ count, valueOf, series, shown }) => {\n    const reached = valueExtent(count, valueOf, shown)\n    return {\n      spans: valueSpans(count, valueOf, series),\n      extent: reached && numberExtent(reached),\n    }\n  },\n  // Over the highest of the row's points.\n  reach: highestPlace,\n}\n\nexport { pointMarks }\n",
      "type": "registry:lib",
      "target": "@lib/chart-point-marks.ts"
    }
  ],
  "type": "registry:lib"
}