{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "description": "The chart block (data). Reads: the rows of `source`, in order. Shape: one row per x value: `x` a time or label column, each of `series` a number column.",
  "properties": {
    "chart": {
      "additionalProperties": false,
      "properties": {
        "format": {
          "default": "number",
          "description": "How values are written.",
          "enum": [
            "number",
            "usd",
            "percent",
            "duration",
            "bytes"
          ],
          "type": "string"
        },
        "id": {
          "description": "The block's id: its Markdown anchor and its actions' route (`/act/<id>/<action>`). Default `<type>-<n>`, n counting blocks of this type depth-first from 1.",
          "pattern": "^[a-z][a-z0-9-]{1,38}$",
          "type": "string"
        },
        "kind": {
          "description": "The chart's shape.",
          "enum": [
            "area",
            "line",
            "bar",
            "donut",
            "spark"
          ],
          "type": "string"
        },
        "series": {
          "description": "The number columns drawn, one series each.",
          "items": {
            "pattern": "^[a-z][a-z0-9_]{0,62}$",
            "type": "string"
          },
          "maxItems": 5,
          "minItems": 1,
          "type": "array"
        },
        "source": {
          "description": "The source whose rows it draws.",
          "pattern": "^[a-z][a-z0-9_]{0,62}$",
          "type": "string"
        },
        "title": {
          "description": "The chart's title.",
          "maxLength": 120,
          "minLength": 1,
          "type": "string"
        },
        "x": {
          "description": "The column along the x axis (a time or a label).",
          "pattern": "^[a-z][a-z0-9_]{0,62}$",
          "type": "string"
        }
      },
      "required": [
        "kind",
        "source",
        "x",
        "series"
      ],
      "type": "object"
    }
  },
  "required": [
    "chart"
  ],
  "title": "chart",
  "type": "object"
}