{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://usechartory.com/schemas/marimekko.json",
 "description": "The data prop of <Marimekko> (Chartory chart 047).",
 "type": "object",
 "title": "MarimekkoData",
 "properties": {
  "toks": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "description": "The colour token of each item, in order."
  },
  "cols": {
   "type": "array",
   "items": {
    "type": "object",
    "title": "MarimekkoCol",
    "properties": {
     "label": {
      "type": "string",
      "description": "The name shown on the chart."
     },
     "share": {
      "type": "number",
      "description": "The column's share of the whole."
     },
     "parts": {
      "type": "array",
      "items": {
       "type": "number"
      },
      "description": "The parts, in order."
     }
    },
    "required": [
     "label",
     "share",
     "parts"
    ]
   },
   "description": "One entry per column."
  }
 },
 "required": [
  "toks",
  "cols"
 ]
}
