{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://usechartory.com/schemas/floating-range-bars.json",
 "description": "The data prop of <FloatingRangeBars> (Chartory chart 005).",
 "type": "object",
 "title": "FloatingRangeBarsData",
 "properties": {
  "cats": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "description": "The category labels, in order."
  },
  "vals": {
   "type": "array",
   "items": {
    "type": "array",
    "prefixItems": [
     {
      "type": "number"
     },
     {
      "type": "number"
     },
     {
      "type": "number"
     }
    ],
    "minItems": 3,
    "maxItems": 3
   },
   "description": "The values, in order."
  },
  "sla": {
   "type": "number",
   "description": "The SLA line: a range that starts above it shows in the warning colour."
  },
  "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": "string"
   },
   "description": "The axis tick labels."
  },
  "toks": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "description": "A colour per bar (then no SLA line: the colours carry their own rule)."
  },
  "noMedian": {
   "type": "boolean",
   "description": "Windows with no median: no tick across the bars."
  }
 },
 "required": [
  "cats",
  "vals",
  "sla",
  "min",
  "max",
  "ticks"
 ]
}
