{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://usechartory.com/schemas/context-ruler.json",
 "description": "The data prop of <ContextRuler> (Chartory chart 081).",
 "type": "object",
 "title": "ContextRulerData",
 "properties": {
  "max": {
   "type": "number",
   "description": "The top of the value scale."
  },
  "limit": {
   "type": "number",
   "description": "The limit."
  },
  "ticks": {
   "type": "array",
   "items": {
    "type": "number"
   },
   "description": "The axis tick values."
  },
  "kinds": {
   "type": "array",
   "items": {
    "type": "object",
    "title": "ContextRulerKind",
    "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 kind: label and colour."
  },
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "title": "ContextRulerRow",
    "properties": {
     "label": {
      "type": "string",
      "description": "The name shown on the chart."
     },
     "segs": {
      "type": "array",
      "items": {
       "type": "number"
      },
      "description": "The segments."
     }
    },
    "required": [
     "label",
     "segs"
    ]
   },
   "description": "One entry per row."
  }
 },
 "required": [
  "max",
  "limit",
  "ticks",
  "kinds",
  "rows"
 ]
}
