{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://usechartory.com/schemas/horizontal-bars.json",
 "description": "The data prop of <HorizontalBars> (Chartory chart 007).",
 "type": "object",
 "title": "HorizontalBarsData",
 "properties": {
  "max": {
   "type": "number",
   "description": "The top of the value scale."
  },
  "ticks": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "description": "The axis tick labels."
  },
  "tokTotal": {
   "type": "string",
   "description": "The colour token of the totals."
  },
  "tokValue": {
   "type": "string",
   "description": "The colour token of the values."
  },
  "valueCol": {
   "type": "number",
   "description": "The width of the value column, in px."
  },
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "title": "HorizontalBarsRow",
    "properties": {
     "label": {
      "type": "string",
      "description": "The name shown on the chart."
     },
     "total": {
      "type": "number",
      "description": "The total."
     },
     "value": {
      "type": "number",
      "description": "The value as shown."
     },
     "text": {
      "type": "string",
      "description": "The label as shown."
     }
    },
    "required": [
     "label",
     "total",
     "value",
     "text"
    ]
   },
   "description": "One entry per row."
  }
 },
 "required": [
  "max",
  "ticks",
  "tokTotal",
  "tokValue",
  "rows"
 ]
}
