{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://usechartory.com/schemas/quadrant.json",
 "description": "The data prop of <Quadrant> (Chartory chart 072).",
 "type": "object",
 "title": "QuadrantData",
 "properties": {
  "pts": {
   "type": "array",
   "items": {
    "type": "object",
    "title": "QuadrantPoint",
    "properties": {
     "label": {
      "type": "string",
      "description": "The name shown on the chart."
     },
     "x": {
      "type": "number",
      "description": "The x value."
     },
     "y": {
      "type": "number",
      "description": "The y value."
     },
     "r": {
      "type": "number",
      "description": "The point's radius value."
     },
     "show": {
      "type": "boolean",
      "description": "Shows the point's label."
     }
    },
    "required": [
     "label",
     "x",
     "y",
     "r"
    ]
   },
   "description": "One entry per point."
  },
  "xmin": {
   "type": "number",
   "description": "The left end of the x scale."
  },
  "xmax": {
   "type": "number",
   "description": "The right end of the x scale."
  },
  "ymin": {
   "type": "number",
   "description": "The bottom of the y scale."
  },
  "ymax": {
   "type": "number",
   "description": "The top of the y scale."
  },
  "mx": {
   "type": "number",
   "description": "The x split."
  },
  "my": {
   "type": "number",
   "description": "The y split."
  },
  "ticks": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "description": "The axis tick labels."
  },
  "xt": {
   "type": "array",
   "items": {
    "type": "array",
    "prefixItems": [
     {
      "type": "number"
     },
     {
      "type": "string"
     }
    ],
    "minItems": 2,
    "maxItems": 2
   },
   "description": "The x axis ticks: [value, label] pairs."
  },
  "quads": {
   "type": "array",
   "prefixItems": [
    {
     "type": "string"
    },
    {
     "type": "string"
    },
    {
     "type": "string"
    },
    {
     "type": "string"
    }
   ],
   "minItems": 4,
   "maxItems": 4,
   "description": "The four quadrant labels."
  }
 },
 "required": [
  "pts",
  "xmin",
  "xmax",
  "ymin",
  "ymax",
  "mx",
  "my",
  "ticks",
  "xt",
  "quads"
 ]
}
