{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://usechartory.com/schemas/ternary.json",
 "description": "The data prop of <Ternary> (Chartory chart 095).",
 "type": "object",
 "title": "TernaryData",
 "properties": {
  "corners": {
   "type": "array",
   "prefixItems": [
    {
     "type": "string"
    },
    {
     "type": "string"
    },
    {
     "type": "string"
    }
   ],
   "minItems": 3,
   "maxItems": 3,
   "description": "The three corner labels."
  },
  "pts": {
   "type": "array",
   "items": {
    "type": "object",
    "title": "TernaryPoint",
    "properties": {
     "label": {
      "type": "string",
      "description": "The name shown on the chart."
     },
     "a": {
      "type": "number",
      "description": "The top corner's share."
     },
     "b": {
      "type": "number",
      "description": "The left corner's share."
     },
     "c": {
      "type": "number",
      "description": "The right corner's share."
     },
     "r": {
      "type": "number",
      "description": "The point's radius value."
     },
     "tok": {
      "type": "string",
      "description": "The colour token, e.g. \"data/primary\"."
     }
    },
    "required": [
     "label",
     "a",
     "b",
     "c",
     "r",
     "tok"
    ]
   },
   "description": "A = top share, b = left, c = right."
  }
 },
 "required": [
  "corners",
  "pts"
 ]
}
