{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://usechartory.com/schemas/incident-tape.json",
 "description": "The data prop of <IncidentTape> (Chartory chart 110).",
 "type": "object",
 "title": "IncidentTapeData",
 "properties": {
  "vals": {
   "type": "array",
   "items": {
    "type": "number"
   },
   "description": "The values, in order."
  },
  "span": {
   "type": "number",
   "description": "The time span."
  },
  "min": {
   "type": "number",
   "description": "The bottom of the value scale."
  },
  "max": {
   "type": "number",
   "description": "The top of the value scale."
  },
  "thr": {
   "type": "number",
   "description": "The threshold."
  },
  "thrText": {
   "type": "string",
   "description": "The threshold's label."
  },
  "now": {
   "type": "number",
   "description": "Where now is on the axis."
  },
  "xl": {
   "type": "array",
   "items": {
    "type": "array",
    "prefixItems": [
     {
      "type": "number"
     },
     {
      "type": "string"
     }
    ],
    "minItems": 2,
    "maxItems": 2
   },
   "description": "The x axis labels: [position, label] pairs."
  },
  "events": {
   "type": "array",
   "items": {
    "type": "object",
    "title": "IncidentTapeEvent",
    "properties": {
     "i": {
      "type": "number",
      "description": "The index of the item it belongs to."
     },
     "text": {
      "type": "string",
      "description": "The label as shown."
     },
     "short": {
      "type": "string",
      "description": "The short form of the label, for the small sizes."
     },
     "tone": {
      "enum": [
       "success",
       "warning",
       "neutral",
       "primary"
      ],
      "description": "The tone of the mark (a colour token)."
     }
    },
    "required": [
     "i",
     "text",
     "short",
     "tone"
    ]
   },
   "description": "One entry per event."
  }
 },
 "required": [
  "vals",
  "min",
  "max",
  "thr",
  "thrText",
  "now",
  "xl",
  "events"
 ]
}
