{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://usechartory.com/schemas/load-plan.json",
 "description": "The data prop of <LoadPlan> (Chartory chart 076).",
 "type": "object",
 "title": "LoadPlanData",
 "properties": {
  "trucks": {
   "type": "array",
   "items": {
    "type": "object",
    "title": "LoadPlanTruck",
    "properties": {
     "label": {
      "type": "string",
      "description": "The name shown on the chart."
     },
     "pct": {
      "type": "number",
      "description": "The share, in percent."
     },
     "cols": {
      "type": "array",
      "items": {
       "type": "array",
       "prefixItems": [
        {
         "type": "number"
        },
        {
         "type": "array",
         "items": {
          "type": "string"
         }
        }
       ],
       "minItems": 2,
       "maxItems": 2
      },
      "description": "The column labels, in order."
     }
    },
    "required": [
     "label",
     "pct",
     "cols"
    ]
   },
   "description": "One entry per truck."
  }
 },
 "required": [
  "trucks"
 ]
}
