{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://usechartory.com/schemas/cells-matrix.json",
 "description": "The data prop of <CellsMatrix> (Chartory chart 027).",
 "type": "object",
 "title": "CellsMatrixData",
 "properties": {
  "rows": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "description": "The row labels, in order."
  },
  "ncols": {
   "type": "number",
   "description": "The number of columns."
  },
  "cells": {
   "type": "array",
   "items": {
    "type": "array",
    "prefixItems": [
     {
      "type": "number"
     },
     {
      "type": "number"
     },
     {
      "type": "string"
     },
     {
      "type": "boolean"
     }
    ],
    "minItems": 4,
    "maxItems": 4
   },
   "description": "The cells, in order."
  },
  "cross": {
   "type": "object",
   "title": "CellsMatrixCross",
   "properties": {
    "r": {
     "type": "number",
     "description": "The crosshair's row (index)."
    },
    "c": {
     "type": "number",
     "description": "The crosshair's column (index)."
    },
    "text": {
     "type": "string",
     "description": "The label as shown."
    }
   },
   "required": [
    "r",
    "c",
    "text"
   ],
   "description": "A crosshair on one cell: row, column and label."
  },
  "yW": {
   "type": "number",
   "description": "The width of the y axis label column, in px."
  }
 },
 "required": [
  "rows",
  "ncols",
  "cells"
 ]
}
