{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://usechartory.com/schemas/traffic-vs-set.json",
 "description": "The data prop of <TrafficVsSet> (Chartory chart 119).",
 "type": "object",
 "title": "TrafficVsSetData",
 "properties": {
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "title": "TrafficVsSetRow",
    "properties": {
     "label": {
      "type": "string",
      "description": "The name shown on the chart."
     },
     "a": {
      "type": "number",
      "description": "The traffic share."
     },
     "b": {
      "type": "number",
      "description": "The test set share."
     },
     "tone": {
      "enum": [
       "gap",
       "under"
      ],
      "description": "The tone of the mark (a colour token)."
     }
    },
    "required": [
     "label",
     "a",
     "b"
    ]
   },
   "description": "One entry per row."
  },
  "max": {
   "type": "number",
   "description": "The top of the value scale."
  }
 },
 "required": [
  "rows",
  "max"
 ]
}
