{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://usechartory.com/schemas/dot-strip.json",
 "description": "The data prop of <DotStrip> (Chartory chart 033).",
 "type": "object",
 "title": "DotStripData",
 "properties": {
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "title": "DotStripRow",
    "properties": {
     "label": {
      "type": "string",
      "description": "The name shown on the chart."
     },
     "pts": {
      "type": "array",
      "items": {
       "type": "array",
       "prefixItems": [
        {
         "type": "number"
        },
        {
         "type": "number"
        }
       ],
       "minItems": 2,
       "maxItems": 2
      },
      "description": "One entry per point."
     }
    },
    "required": [
     "label",
     "pts"
    ]
   },
   "description": "One entry per row."
  },
  "min": {
   "type": "number",
   "description": "The bottom of the value scale."
  },
  "max": {
   "type": "number",
   "description": "The top of the value scale."
  },
  "ticks": {
   "type": "array",
   "items": {
    "type": "array",
    "prefixItems": [
     {
      "type": "number"
     },
     {
      "type": "string"
     }
    ],
    "minItems": 2,
    "maxItems": 2
   },
   "description": "The axis ticks: [value, label] pairs."
  },
  "fmt": {
   "x-function": "(v: number) => string",
   "description": "A function, so not JSON: pass it in code."
  },
  "yW": {
   "type": "number",
   "description": "The width of the y axis label column, in px."
  }
 },
 "required": [
  "rows",
  "min",
  "max",
  "ticks"
 ]
}
