{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://usechartory.com/schemas/bar-and-line-combo.json",
 "description": "The data prop of <BarAndLineCombo> (Chartory chart 046).",
 "type": "object",
 "title": "BarAndLineComboData",
 "properties": {
  "cats": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "description": "The category labels, in order."
  },
  "xl": {
   "type": "array",
   "items": {
    "type": "number"
   },
   "description": "The indexes of the categories that get an x axis label."
  },
  "bars": {
   "type": "object",
   "title": "BarAndLineComboBar",
   "properties": {
    "tok": {
     "type": "string",
     "description": "The colour token, e.g. \"data/primary\"."
    },
    "vals": {
     "type": "array",
     "items": {
      "type": "number"
     },
     "description": "The values, in order."
    },
    "max": {
     "type": "number",
     "description": "The top of the value scale."
    },
    "ticks": {
     "type": "array",
     "items": {
      "type": "string"
     },
     "description": "The axis tick labels."
    }
   },
   "required": [
    "tok",
    "vals",
    "max",
    "ticks"
   ],
   "description": "The bar series."
  },
  "line": {
   "type": "object",
   "title": "BarAndLineComboLine",
   "properties": {
    "tok": {
     "type": "string",
     "description": "The colour token, e.g. \"data/primary\"."
    },
    "vals": {
     "type": "array",
     "items": {
      "type": "number"
     },
     "description": "The values, in order."
    },
    "max": {
     "type": "number",
     "description": "The top of the value scale."
    },
    "ticks": {
     "type": "array",
     "items": {
      "type": "string"
     },
     "description": "The axis tick labels."
    }
   },
   "required": [
    "tok",
    "vals",
    "max",
    "ticks"
   ],
   "description": "The line series."
  }
 },
 "required": [
  "cats",
  "xl",
  "bars",
  "line"
 ]
}
