{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://usechartory.com/schemas/network.json",
 "description": "The data prop of <Network> (Chartory chart 039).",
 "type": "object",
 "title": "NetworkData",
 "properties": {
  "hub": {
   "type": "string",
   "description": "The hub's label."
  },
  "hubSub": {
   "type": "string",
   "description": "The line under the hub's label."
  },
  "nodes": {
   "type": "array",
   "items": {
    "type": "object",
    "title": "NetworkNode",
    "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\"."
     },
     "text": {
      "type": "string",
      "description": "The label as shown."
     },
     "subs": {
      "type": "array",
      "items": {
       "type": "number"
      },
      "description": "The sub-values."
     }
    },
    "required": [
     "label",
     "v",
     "tok",
     "text"
    ]
   },
   "description": "One entry per node."
  }
 },
 "required": [
  "hub",
  "hubSub",
  "nodes"
 ]
}
