{
  "$id": "https://schema.rtemis.org/chart/v1/schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "rtemis chart",
  "description": "Language-independent config for an rtemis chart. A chart type plus its type-specific data binding, semantics and appearance. The same config drives rtemis.draw (R) and rtemislive (TypeScript) to the same chart.",
  "type": "object",
  "properties": {
    "type": {
      "description": "Chart type; selects which chart schema applies.",
      "type": "string",
      "enum": ["scatter", "bar", "density", "histogram", "line", "pie", "boxplot", "sankey", "gantt", "network", "choropleth", "heatmap", "spectrogram", "a3"]
    }
  },
  "required": ["type"],
  "oneOf": [
    {
      "$ref": "https://schema.rtemis.org/chart/scatter/v1/schema.json"
    },
    {
      "$ref": "https://schema.rtemis.org/chart/bar/v1/schema.json"
    },
    {
      "$ref": "https://schema.rtemis.org/chart/density/v1/schema.json"
    },
    {
      "$ref": "https://schema.rtemis.org/chart/histogram/v1/schema.json"
    },
    {
      "$ref": "https://schema.rtemis.org/chart/line/v1/schema.json"
    },
    {
      "$ref": "https://schema.rtemis.org/chart/pie/v1/schema.json"
    },
    {
      "$ref": "https://schema.rtemis.org/chart/boxplot/v1/schema.json"
    },
    {
      "$ref": "https://schema.rtemis.org/chart/sankey/v1/schema.json"
    },
    {
      "$ref": "https://schema.rtemis.org/chart/gantt/v1/schema.json"
    },
    {
      "$ref": "https://schema.rtemis.org/chart/network/v1/schema.json"
    },
    {
      "$ref": "https://schema.rtemis.org/chart/choropleth/v1/schema.json"
    },
    {
      "$ref": "https://schema.rtemis.org/chart/heatmap/v1/schema.json"
    },
    {
      "$ref": "https://schema.rtemis.org/chart/spectrogram/v1/schema.json"
    },
    {
      "$ref": "https://schema.rtemis.org/chart/a3/v1/schema.json"
    }
  ]
}
