{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://usechartory.com/schemas/split-calendar.json",
 "description": "The data prop of <SplitCalendar> (Chartory chart 100).",
 "type": "object",
 "title": "SplitCalendarData",
 "properties": {
  "days": {
   "type": "array",
   "items": {
    "type": "array",
    "prefixItems": [
     {
      "type": "number"
     },
     {
      "type": "number"
     }
    ],
    "minItems": 2,
    "maxItems": 2
   },
   "description": "The days."
  },
  "start": {
   "type": "number",
   "description": "The start."
  },
  "max": {
   "type": "number",
   "description": "The top of the value scale."
  },
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "title": "SplitCalendarRow",
    "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": [
  "days",
  "start",
  "max",
  "rows"
 ]
}
