{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://usechartory.com/schemas/icicle.json",
 "description": "The data prop of <Icicle> (Chartory chart 068).",
 "type": "object",
 "title": "IcicleData",
 "properties": {
  "root": {
   "type": "string",
   "description": "The root."
  },
  "fmt": {
   "x-function": "(v: number) => string",
   "description": "A function, so not JSON: pass it in code."
  },
  "teams": {
   "type": "array",
   "items": {
    "type": "object",
    "title": "IcicleTeam",
    "properties": {
     "label": {
      "type": "string",
      "description": "The name shown on the chart."
     },
     "v": {
      "type": "number",
      "description": "The value."
     },
     "tok": {
      "type": "string",
      "description": "The colour token, e.g. \"data/primary\"."
     },
     "kids": {
      "type": "array",
      "items": {
       "type": "object",
       "title": "IcicleKid",
       "properties": {
        "label": {
         "type": "string",
         "description": "The name shown on the chart."
        },
        "v": {
         "type": "number",
         "description": "The value."
        }
       },
       "required": [
        "label",
        "v"
       ]
      },
      "description": "One entry per child."
     }
    },
    "required": [
     "label",
     "v",
     "tok",
     "kids"
    ]
   },
   "description": "One entry per team."
  }
 },
 "required": [
  "root",
  "teams"
 ]
}
