{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://usechartory.com/schemas/funnel.json",
 "description": "The data prop of <Funnel> (Chartory chart 032).",
 "type": "object",
 "title": "FunnelData",
 "properties": {
  "widths": {
   "type": "array",
   "items": {
    "type": "number"
   },
   "description": "The widths, in order."
  },
  "stages": {
   "type": "array",
   "items": {
    "type": "object",
    "title": "FunnelStage",
    "properties": {
     "label": {
      "type": "string",
      "description": "The name shown on the chart."
     },
     "text": {
      "type": "string",
      "description": "The label as shown."
     },
     "tok": {
      "type": "string",
      "description": "The colour token, e.g. \"data/primary\"."
     },
     "conv": {
      "type": "string",
      "description": "The conversion as shown."
     }
    },
    "required": [
     "label",
     "text",
     "tok"
    ]
   },
   "description": "One entry per stage."
  }
 },
 "required": [
  "widths",
  "stages"
 ]
}
