{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://usechartory.com/schemas/tile-map.json",
 "description": "The data prop of <TileMap> (Chartory chart 029).",
 "type": "object",
 "title": "TileMapData",
 "properties": {
  "tiles": {
   "type": "array",
   "items": {
    "type": "array",
    "prefixItems": [
     {
      "type": "string"
     },
     {
      "type": "number"
     },
     {
      "type": "number"
     },
     {
      "type": "number"
     }
    ],
    "minItems": 4,
    "maxItems": 4
   },
   "description": "The tiles: [label, column, row, value]."
  },
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "title": "TileMapRow",
    "properties": {
     "label": {
      "type": "string",
      "description": "The name shown on the chart."
     },
     "text": {
      "type": "string",
      "description": "The label as shown."
     },
     "pct": {
      "type": "string",
      "description": "The share as shown, e.g. \"42%\"."
     },
     "tok": {
      "type": "string",
      "description": "The colour token, e.g. \"data/primary\"."
     },
     "tone": {
      "type": "string",
      "description": "The tone of the mark (a colour token)."
     },
     "h": {
      "type": "number",
      "description": "The row height in the side list, in px."
     }
    },
    "required": [
     "label",
     "text"
    ]
   },
   "description": "One entry per row."
  }
 },
 "required": [
  "tiles",
  "rows"
 ]
}
