{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://usechartory.com/schemas/bowtie.json",
 "description": "The data prop of <Bowtie> (Chartory chart 087).",
 "type": "object",
 "title": "BowtieData",
 "properties": {
  "fmt": {
   "x-function": "(v: number) => string",
   "description": "A function, so not JSON: pass it in code."
  },
  "left": {
   "type": "array",
   "items": {
    "type": "object",
    "title": "BowtieSeg",
    "properties": {
     "label": {
      "type": "string",
      "description": "The name shown on the chart."
     },
     "v": {
      "type": "number",
      "description": "The value."
     },
     "text": {
      "type": "string",
      "description": "The label as shown."
     }
    },
    "required": [
     "label",
     "v"
    ]
   },
   "description": "The nodes in the left column."
  },
  "knot": {
   "type": "object",
   "title": "BowtieSeg",
   "properties": {
    "label": {
     "type": "string",
     "description": "The name shown on the chart."
    },
    "v": {
     "type": "number",
     "description": "The value."
    },
    "text": {
     "type": "string",
     "description": "The label as shown."
    }
   },
   "required": [
    "label",
    "v"
   ],
   "description": "The knot."
  },
  "right": {
   "type": "array",
   "items": {
    "type": "object",
    "title": "BowtieSeg",
    "properties": {
     "label": {
      "type": "string",
      "description": "The name shown on the chart."
     },
     "v": {
      "type": "number",
      "description": "The value."
     },
     "text": {
      "type": "string",
      "description": "The label as shown."
     }
    },
    "required": [
     "label",
     "v"
    ]
   },
   "description": "The nodes in the right column."
  }
 },
 "required": [
  "left",
  "knot",
  "right"
 ]
}
