{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://usechartory.com/schemas/tree.json",
 "description": "The data prop of <Tree> (Chartory chart 040).",
 "type": "object",
 "title": "TreeData",
 "properties": {
  "heads": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "description": "The column headings."
  },
  "levels": {
   "type": "array",
   "items": {
    "type": "array",
    "items": {
     "type": "object",
     "title": "TreeItem",
     "properties": {
      "label": {
       "type": "string",
       "description": "The name shown on the chart."
      },
      "status": {
       "type": "string",
       "description": "The status as shown."
      },
      "parent": {
       "type": "number",
       "description": "The index of its parent in the level above."
      },
      "progress": {
       "type": "number",
       "description": "The progress."
      }
     },
     "required": [
      "label",
      "status"
     ]
    }
   },
   "description": "The tree, one array per level."
  }
 },
 "required": [
  "heads",
  "levels"
 ]
}
