{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://usechartory.com/schemas/vertical-profile.json",
 "description": "The data prop of <VerticalProfile> (Chartory chart 016).",
 "type": "object",
 "title": "VerticalProfileData",
 "properties": {
  "rows": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "description": "The row labels, in order."
  },
  "min": {
   "type": "number",
   "description": "The bottom of the value scale."
  },
  "max": {
   "type": "number",
   "description": "The top of the value scale."
  },
  "xt": {
   "type": "array",
   "items": {
    "type": "array",
    "prefixItems": [
     {
      "type": "number"
     },
     {
      "type": "string"
     }
    ],
    "minItems": 2,
    "maxItems": 2
   },
   "description": "The x axis ticks: [value, label] pairs."
  },
  "series": {
   "type": "array",
   "items": {
    "type": "object",
    "title": "VerticalProfileSeries",
    "properties": {
     "name": {
      "type": "string",
      "description": "The name shown on the chart."
     },
     "tok": {
      "type": "string",
      "description": "The colour token, e.g. \"data/primary\"."
     },
     "vals": {
      "type": "array",
      "items": {
       "type": "number"
      },
      "description": "The values, in order."
     }
    },
    "required": [
     "name",
     "tok",
     "vals"
    ]
   },
   "description": "One entry per series."
  }
 },
 "required": [
  "rows",
  "min",
  "max",
  "xt",
  "series"
 ]
}
