{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://usechartory.com/schemas/box-plot.json",
 "description": "The data prop of <BoxPlot> (Chartory chart 043).",
 "type": "object",
 "title": "BoxPlotData",
 "properties": {
  "max": {
   "type": "number",
   "description": "The top of the value scale."
  },
  "ticks": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "description": "The axis tick labels."
  },
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "title": "BoxPlotRow",
    "properties": {
     "label": {
      "type": "string",
      "description": "The name shown on the chart."
     },
     "q": {
      "type": "array",
      "prefixItems": [
       {
        "type": "number"
       },
       {
        "type": "number"
       },
       {
        "type": "number"
       },
       {
        "type": "number"
       },
       {
        "type": "number"
       }
      ],
      "minItems": 5,
      "maxItems": 5,
      "description": "The five numbers: min, lower quartile, median, upper quartile, max."
     },
     "out": {
      "type": "array",
      "items": {
       "type": "number"
      },
      "description": "The outliers."
     }
    },
    "required": [
     "label",
     "q"
    ]
   },
   "description": "One entry per row."
  }
 },
 "required": [
  "max",
  "ticks",
  "rows"
 ]
}
