{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://usechartory.com/schemas/load-bars.json",
 "description": "The data prop of <LoadBars> (Chartory chart 126).",
 "type": "object",
 "title": "LoadBarsData",
 "properties": {
  "kinds": {
   "type": "array",
   "items": {
    "type": "object",
    "title": "LoadBarsKind",
    "properties": {
     "label": {
      "type": "string",
      "description": "The name shown on the chart."
     },
     "tok": {
      "type": "string",
      "description": "The colour token, e.g. \"data/primary\"."
     }
    },
    "required": [
     "label",
     "tok"
    ]
   },
   "description": "One entry per kind: label and colour."
  },
  "free": {
   "type": "object",
   "title": "LoadBarsFree",
   "properties": {
    "label": {
     "type": "string",
     "description": "The name shown on the chart."
    },
    "n": {
     "type": "number",
     "description": "The count."
    }
   },
   "required": [
    "label",
    "n"
   ],
   "description": "The free capacity: label and count."
  },
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "title": "LoadBarsRow",
    "properties": {
     "label": {
      "type": "string",
      "description": "The name shown on the chart."
     },
     "parts": {
      "type": "array",
      "items": {
       "type": "number"
      },
      "description": "The parts, in order."
     },
     "add": {
      "type": "number",
      "description": "The added amount."
     }
    },
    "required": [
     "label",
     "parts"
    ]
   },
   "description": "One entry per row."
  },
  "avg": {
   "type": "number",
   "description": "The average."
  },
  "avgText": {
   "type": "string",
   "description": "The average's label."
  },
  "max": {
   "type": "number",
   "description": "The top of the value scale."
  }
 },
 "required": [
  "kinds",
  "free",
  "rows",
  "avg",
  "avgText",
  "max"
 ]
}
