{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://usechartory.com/schemas/cluster-map.json",
 "description": "The data prop of <ClusterMap> (Chartory chart 091).",
 "type": "object",
 "title": "ClusterMapData",
 "properties": {
  "seed": {
   "type": "number",
   "description": "Seeds the generated marks, so the layout is the same on every render."
  },
  "clusters": {
   "type": "array",
   "items": {
    "type": "object",
    "title": "ClusterMapCluster",
    "properties": {
     "label": {
      "type": "string",
      "description": "The name shown on the chart."
     },
     "tok": {
      "type": "string",
      "description": "The colour token, e.g. \"data/primary\"."
     },
     "cx": {
      "type": "number",
      "description": "The cluster's centre, x."
     },
     "cy": {
      "type": "number",
      "description": "The cluster's centre, y."
     },
     "sx": {
      "type": "number",
      "description": "The cluster's spread, x."
     },
     "sy": {
      "type": "number",
      "description": "The cluster's spread, y."
     },
     "n": {
      "type": "number",
      "description": "The number of points in the cluster."
     }
    },
    "required": [
     "label",
     "tok",
     "cx",
     "cy",
     "sx",
     "sy",
     "n"
    ]
   },
   "description": "One entry per cluster."
  }
 },
 "required": [
  "clusters"
 ]
}
