{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://usechartory.com/schemas/streamgraph.json",
 "description": "The data prop of <Streamgraph> (Chartory chart 014).",
 "type": "object",
 "title": "StreamgraphData",
 "properties": {
  "now": {
   "type": "number",
   "description": "Where now is on the axis."
  },
  "nowLabel": {
   "type": "string",
   "description": "The label at now."
  },
  "xl": {
   "type": "object",
   "additionalProperties": {
    "type": "string"
   },
   "description": "The x axis labels, by index."
  },
  "layers": {
   "type": "array",
   "items": {
    "type": "object",
    "title": "StreamgraphLayer",
    "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 layer."
  }
 },
 "required": [
  "now",
  "nowLabel",
  "xl",
  "layers"
 ]
}
