{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://usechartory.com/schemas/venn.json",
 "description": "The data prop of <Venn> (Chartory chart 069).",
 "type": "object",
 "title": "VennData",
 "properties": {
  "sets": {
   "type": "array",
   "items": {
    "type": "object",
    "title": "VennSet",
    "properties": {
     "label": {
      "type": "string",
      "description": "The name shown on the chart."
     },
     "tok": {
      "type": "string",
      "description": "The colour token, e.g. \"data/primary\"."
     }
    },
    "required": [
     "label",
     "tok"
    ]
   },
   "description": "One entry per set."
  },
  "regions": {
   "type": "object",
   "title": "VennRegion",
   "properties": {
    "a": {
     "type": "string",
     "description": "Only in set 1."
    },
    "b": {
     "type": "string",
     "description": "Only in set 2."
    },
    "c": {
     "type": "string",
     "description": "Only in set 3."
    },
    "ab": {
     "type": "string",
     "description": "In sets 1 and 2."
    },
    "ac": {
     "type": "string",
     "description": "In sets 1 and 3."
    },
    "bc": {
     "type": "string",
     "description": "In sets 2 and 3."
    },
    "abc": {
     "type": "string",
     "description": "In all three sets."
    }
   },
   "required": [
    "a",
    "b",
    "c",
    "ab",
    "ac",
    "bc",
    "abc"
   ],
   "description": "The label in each region of the sets."
  },
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "title": "VennRow",
    "properties": {
     "label": {
      "type": "string",
      "description": "The name shown on the chart."
     },
     "text": {
      "type": "string",
      "description": "The label as shown."
     },
     "pct": {
      "type": "string",
      "description": "The share as shown, e.g. \"42%\"."
     },
     "tok": {
      "type": "string",
      "description": "The colour token, e.g. \"data/primary\"."
     },
     "tone": {
      "type": "string",
      "description": "The tone of the mark (a colour token)."
     },
     "h": {
      "type": "number",
      "description": "The row height in the side list, in px."
     }
    },
    "required": [
     "label",
     "text"
    ]
   },
   "description": "One entry per row."
  }
 },
 "required": [
  "sets",
  "regions",
  "rows"
 ]
}
