{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://usechartory.com/schemas/slope.json",
 "description": "The data prop of <Slope> (Chartory chart 044).",
 "type": "object",
 "title": "SlopeData",
 "properties": {
  "left": {
   "type": "string",
   "description": "The left side's label."
  },
  "right": {
   "type": "string",
   "description": "The right side's label."
  },
  "min": {
   "type": "number",
   "description": "The bottom of the value scale."
  },
  "max": {
   "type": "number",
   "description": "The top of the value scale."
  },
  "fmt": {
   "x-function": "(v: number) => string",
   "description": "A function, so not JSON: pass it in code."
  },
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "title": "SlopeRow",
    "properties": {
     "label": {
      "type": "string",
      "description": "The name shown on the chart."
     },
     "a": {
      "type": "number",
      "description": "The value on the left."
     },
     "b": {
      "type": "number",
      "description": "The value on the right."
     }
    },
    "required": [
     "label",
     "a",
     "b"
    ]
   },
   "description": "One entry per row."
  }
 },
 "required": [
  "left",
  "right",
  "min",
  "max",
  "rows"
 ]
}
