{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://usechartory.com/schemas/age-pyramid.json",
 "description": "The data prop of <AgePyramid> (Chartory chart 082).",
 "type": "object",
 "title": "AgePyramidData",
 "properties": {
  "max": {
   "type": "number",
   "description": "The top of the value scale."
  },
  "aTok": {
   "type": "string",
   "description": "The colour token of the first side."
  },
  "bTok": {
   "type": "string",
   "description": "The colour token of the second side."
  },
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "title": "AgePyramidRow",
    "properties": {
     "label": {
      "type": "string",
      "description": "The name shown on the chart."
     },
     "a": {
      "type": "number",
      "description": "The value on the left (aTok)."
     },
     "b": {
      "type": "number",
      "description": "The value on the right (bTok)."
     }
    },
    "required": [
     "label",
     "a",
     "b"
    ]
   },
   "description": "One entry per row."
  }
 },
 "required": [
  "max",
  "aTok",
  "bTok",
  "rows"
 ]
}
