{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://usechartory.com/schemas/runs-with-brush.json",
 "description": "The data prop of <RunsWithBrush> (Chartory chart 104).",
 "type": "object",
 "title": "RunsWithBrushData",
 "properties": {
  "runs": {
   "type": "array",
   "items": {
    "type": "number"
   },
   "description": "The runs, per point."
  },
  "rate": {
   "type": "array",
   "items": {
    "type": "number"
   },
   "description": "The rate, per point."
  },
  "ghost": {
   "type": "array",
   "items": {
    "type": "number"
   },
   "description": "The earlier value, drawn as a ghost."
  },
  "rmin": {
   "type": "number",
   "description": "The bottom of the rate scale."
  },
  "rmax": {
   "type": "number",
   "description": "The top of the rate scale."
  },
  "days": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "description": "The days."
  },
  "events": {
   "type": "array",
   "items": {
    "type": "object",
    "title": "RunsWithBrushEvent",
    "properties": {
     "h": {
      "type": "number",
      "description": "The hour of the event."
     },
     "text": {
      "type": "string",
      "description": "The label as shown."
     },
     "tone": {
      "enum": [
       "success",
       "warning",
       "danger",
       "info",
       "neutral",
       "primary"
      ],
      "description": "The tone of the mark (a colour token)."
     }
    },
    "required": [
     "h",
     "text",
     "tone"
    ]
   },
   "description": "One entry per event."
  },
  "tip": {
   "type": "string",
   "description": "The text of the highlighted point's chip."
  }
 },
 "required": [
  "runs",
  "rate",
  "ghost",
  "rmin",
  "rmax",
  "days",
  "events"
 ]
}
