{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://usechartory.com/schemas/drift-arrows.json",
 "description": "The data prop of <DriftArrows> (Chartory chart 089).",
 "type": "object",
 "title": "DriftArrowsData",
 "properties": {
  "max": {
   "type": "number",
   "description": "The top of the value scale."
  },
  "xt": {
   "type": "array",
   "items": {
    "type": "array",
    "prefixItems": [
     {
      "type": "number"
     },
     {
      "type": "string"
     }
    ],
    "minItems": 2,
    "maxItems": 2
   },
   "description": "The x axis ticks: [value, label] pairs."
  },
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "title": "DriftArrowsRow",
    "properties": {
     "label": {
      "type": "string",
      "description": "The name shown on the chart."
     },
     "now": {
      "type": "number",
      "description": "Where now is on the axis."
     },
     "target": {
      "type": "number",
      "description": "The target value."
     }
    },
    "required": [
     "label",
     "now",
     "target"
    ]
   },
   "description": "One entry per row."
  }
 },
 "required": [
  "max",
  "xt",
  "rows"
 ]
}
