{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://usechartory.com/schemas/target-trend.json",
 "description": "The data prop of <TargetTrend> (Chartory chart 105).",
 "type": "object",
 "title": "TargetTrendData",
 "properties": {
  "vals": {
   "type": "array",
   "items": {
    "type": "number"
   },
   "description": "The values, in order."
  },
  "min": {
   "type": "number",
   "description": "The bottom of the value scale."
  },
  "max": {
   "type": "number",
   "description": "The top of the value scale."
  },
  "target": {
   "type": "number",
   "description": "The target value."
  },
  "ticks": {
   "type": "array",
   "items": {
    "type": "array",
    "prefixItems": [
     {
      "type": "number"
     },
     {
      "type": "string"
     }
    ],
    "minItems": 2,
    "maxItems": 2
   },
   "description": "The axis ticks: [value, label] pairs."
  },
  "tok": {
   "type": "string",
   "description": "The colour token, e.g. \"data/primary\"."
  },
  "change": {
   "type": "object",
   "title": "TargetTrendChange",
   "properties": {
    "i": {
     "type": "number",
     "description": "The index of the item it belongs to."
    },
    "text": {
     "type": "string",
     "description": "The label as shown."
    }
   },
   "required": [
    "i",
    "text"
   ],
   "description": "The change point: index and label."
  },
  "xl": {
   "type": "array",
   "items": {
    "type": "array",
    "prefixItems": [
     {
      "type": "number"
     },
     {
      "type": "string"
     }
    ],
    "minItems": 2,
    "maxItems": 2
   },
   "description": "The x axis labels: [position, label] pairs."
  },
  "endText": {
   "type": "string",
   "description": "The label at the end."
  },
  "targetText": {
   "type": "string",
   "description": "The target's label."
  }
 },
 "required": [
  "vals",
  "min",
  "max",
  "target",
  "ticks",
  "tok",
  "change",
  "xl",
  "endText",
  "targetText"
 ]
}
