---
title: AreaChart
description: JSON Schema for the AreaChart component.
---

Area chart with one or more series.

```json
{
  "type": "object",
  "properties": {
    "type": {
      "const": "AreaChart",
      "default": "AreaChart",
      "type": "string"
    },
    "cssClass": {
      "type": [
        "string",
        "null"
      ],
      "default": null,
      "description": "CSS/Tailwind classes for styling. Accepts a Responsive() for breakpoint-aware classes."
    },
    "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"
    },
    "showYAxis": {
      "default": true,
      "description": "Show y-axis with tick labels",
      "type": "boolean"
    },
    "yAxisFormat": {
      "default": "auto",
      "description": "Y-axis tick format: 'compact' shows 60K instead of 60000",
      "enum": [
        "auto",
        "compact"
      ],
      "type": "string"
    }
  },
  "required": [
    "type",
    "data",
    "series"
  ]
}
```
