{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://usechartory.com/schemas/correlation-triangle.json",
 "description": "The data prop of <CorrelationTriangle> (Chartory chart 085).",
 "type": "object",
 "title": "CorrelationTriangleData",
 "properties": {
  "labels": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "description": "The labels, in order."
  },
  "m": {
   "type": "array",
   "items": {
    "type": "array",
    "items": {
     "type": "number"
    }
   },
   "description": "The matrix values, row by row."
  },
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "title": "CorrelationTriangleRow",
    "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."
  },
  "lW": {
   "type": "number",
   "description": "The row-label column (default 40, the kit's three-letter tickers)."
  },
  "listW": {
   "type": "number",
   "description": "The side list's room (default 64)."
  },
  "cols": {
   "type": "boolean",
   "description": "Column labels under the cells (default: when the cells are 30 px or more)."
  }
 },
 "required": [
  "labels",
  "m",
  "rows"
 ]
}
