{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://usechartory.com/schemas/sunburst.json",
 "description": "The data prop of <Sunburst> (Chartory chart 022).",
 "type": "object",
 "title": "SunburstData",
 "properties": {
  "center": {
   "type": "object",
   "title": "SunburstCenter",
   "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."
  },
  "groups": {
   "type": "array",
   "items": {
    "type": "object",
    "title": "SunburstGroup",
    "properties": {
     "label": {
      "type": "string",
      "description": "The name shown on the chart."
     },
     "tok": {
      "type": "string",
      "description": "The colour token, e.g. \"data/primary\"."
     },
     "items": {
      "type": "array",
      "items": {
       "type": "array",
       "prefixItems": [
        {
         "type": "string"
        },
        {
         "type": "number"
        }
       ],
       "minItems": 2,
       "maxItems": 2
      },
      "description": "One entry per item."
     }
    },
    "required": [
     "label",
     "tok",
     "items"
    ]
   },
   "description": "One entry per group."
  }
 },
 "required": [
  "center",
  "groups"
 ]
}
