Skip to main content
Area chart with one or more series.
{
  "type": "object",
  "properties": {
    "type": {
      "const": "AreaChart",
      "default": "AreaChart",
      "type": "string"
    },
    "cssClass": {
      "type": [
        "string",
        "null"
      ],
      "default": null,
      "description": "CSS/Tailwind classes for styling"
    },
    "data": {
      "anyOf": [
        {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "type": "array"
        },
        {
          "type": "string"
        }
      ],
      "description": "Row data or {{ interpolation }} reference"
    },
    "series": {
      "description": "Series to render as areas",
      "items": {
        "$ref": "ChartSeries"
      },
      "type": "array"
    },
    "xAxis": {
      "type": [
        "string",
        "null"
      ],
      "default": null,
      "description": "Data key for x-axis labels"
    },
    "height": {
      "default": 300,
      "description": "Chart height in pixels",
      "type": "integer"
    },
    "stacked": {
      "default": false,
      "description": "Stack areas",
      "type": "boolean"
    },
    "curve": {
      "default": "linear",
      "description": "Line interpolation style",
      "enum": [
        "linear",
        "smooth",
        "step"
      ],
      "type": "string"
    },
    "showDots": {
      "default": false,
      "description": "Show dots at data points",
      "type": "boolean"
    },
    "showLegend": {
      "default": false,
      "description": "Show legend",
      "type": "boolean"
    },
    "showTooltip": {
      "default": true,
      "description": "Show tooltip on hover",
      "type": "boolean"
    },
    "showGrid": {
      "default": true,
      "description": "Show cartesian grid",
      "type": "boolean"
    }
  },
  "required": [
    "type",
    "data",
    "series"
  ]
}