{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://usechartory.com/schemas/progress-ring.json",
 "description": "The data prop of <ProgressRing> (Chartory chart 020).",
 "type": "object",
 "title": "ProgressRingData",
 "properties": {
  "slices": {
   "type": "array",
   "items": {
    "type": "object",
    "title": "ProgressRingSlice",
    "properties": {
     "label": {
      "type": "string",
      "description": "The name shown on the chart."
     },
     "v": {
      "type": "number",
      "description": "The value."
     },
     "tok": {
      "type": "string",
      "description": "The colour token, e.g. \"data/primary\"."
     }
    },
    "required": [
     "label",
     "v",
     "tok"
    ]
   },
   "description": "One entry per slice."
  },
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "title": "ProgressRingRow",
    "properties": {
     "label": {
      "type": "string",
      "description": "The name shown on the chart."
     },
     "text": {
      "type": "string",
      "description": "The label as shown."
     },
     "pct": {
      "type": "string",
      "description": "The share as shown, e.g. \"42%\"."
     },
     "tok": {
      "type": "string",
      "description": "The colour token, e.g. \"data/primary\"."
     },
     "tone": {
      "type": "string",
      "description": "The tone of the mark (a colour token)."
     },
     "h": {
      "type": "number",
      "description": "The row height in the side list, in px."
     }
    },
    "required": [
     "label",
     "text"
    ]
   },
   "description": "One entry per row."
  },
  "inner": {
   "type": "number",
   "description": "The inner radius."
  },
  "track": {
   "type": "boolean",
   "description": "Draws the full ring in data/track behind the slices."
  },
  "of": {
   "type": "number",
   "description": "The whole the values are a share of."
  },
  "sep": {
   "type": "boolean",
   "description": "Strokes the slices apart in the background colour."
  },
  "d": {
   "type": "number",
   "description": "The ring's diameter, in px."
  },
  "center": {
   "type": "object",
   "title": "ProgressRingCenter",
   "properties": {
    "value": {
     "type": "string",
     "description": "The value as shown."
    },
    "caps": {
     "type": "string",
     "description": "The caption under the value."
    }
   },
   "required": [
    "value",
    "caps"
   ],
   "description": "The text in the centre: value and caption."
  }
 },
 "required": [
  "slices",
  "rows"
 ]
}
