{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://usechartory.com/schemas/multi-line.json",
 "description": "The data prop of <MultiLine> (Chartory chart 012).",
 "type": "object",
 "title": "MultiLineData",
 "properties": {
  "min": {
   "type": "number",
   "description": "The bottom of the value scale."
  },
  "max": {
   "type": "number",
   "description": "The top of the value scale."
  },
  "ticks": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "description": "The axis tick labels."
  },
  "xl": {
   "type": "object",
   "additionalProperties": {
    "type": "string"
   },
   "description": "The x axis labels, by index."
  },
  "series": {
   "type": "array",
   "items": {
    "type": "object",
    "title": "MultiLineSeries",
    "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."
  },
  "area": {
   "type": "number",
   "description": "Area opacity under each line (none when absent)."
  },
  "sw": {
   "type": "number",
   "description": "The line width."
  }
 },
 "required": [
  "min",
  "max",
  "ticks",
  "xl",
  "series"
 ]
}
