{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://usechartory.com/schemas/threshold-what-if.json",
 "description": "The data prop of <ThresholdWhatIf> (Chartory chart 111).",
 "type": "object",
 "title": "ThresholdWhatIfData",
 "properties": {
  "vals": {
   "type": "array",
   "items": {
    "type": "number"
   },
   "description": "The values, in order."
  },
  "min": {
   "type": "number",
   "description": "The bottom of the value scale."
  },
  "max": {
   "type": "number",
   "description": "The top of the value scale."
  },
  "now": {
   "type": "object",
   "title": "ThresholdWhatIfNow",
   "properties": {
    "v": {
     "type": "number",
     "description": "The value."
    },
    "text": {
     "type": "string",
     "description": "The label as shown."
    },
    "lane": {
     "type": "string",
     "description": "The lane it sits in."
    }
   },
   "required": [
    "v",
    "text",
    "lane"
   ],
   "description": "Now: where it is and its label."
  },
  "prop": {
   "type": "object",
   "title": "ThresholdWhatIfProp",
   "properties": {
    "v": {
     "type": "number",
     "description": "The value."
    },
    "text": {
     "type": "string",
     "description": "The label as shown."
    },
    "lane": {
     "type": "string",
     "description": "The lane it sits in."
    }
   },
   "required": [
    "v",
    "text",
    "lane"
   ],
   "description": "The proposed value and its label."
  },
  "ticks": {
   "type": "array",
   "items": {
    "type": "array",
    "prefixItems": [
     {
      "type": "number"
     },
     {
      "type": "string"
     }
    ],
    "minItems": 2,
    "maxItems": 2
   },
   "description": "The axis ticks: [value, label] pairs."
  },
  "xl": {
   "type": "array",
   "items": {
    "type": "array",
    "prefixItems": [
     {
      "type": "number"
     },
     {
      "type": "string"
     }
    ],
    "minItems": 2,
    "maxItems": 2
   },
   "description": "The x axis labels: [position, label] pairs."
  }
 },
 "required": [
  "vals",
  "min",
  "max",
  "now",
  "prop",
  "ticks",
  "xl"
 ]
}
