# Basic area (Area example)

> WestCoast Charts 1.1.5, release, public Core release, on npm. HTML: https://westcoast-charts.com/gallery/area/basic-area/ · Index for agents: https://westcoast-charts.com/llms.txt

Weekly downloads as a smooth filled area.

- Chart type: `area` (Area)
- Collection: Area · Area
- Raw configuration: https://westcoast-charts.com/gallery-src/area/basic-area.js
- Standalone example: https://westcoast-charts.com/embed/samples/wcc/gallery/area/basic-area.html

## Setup

```js
import WestCoastCharts from 'west-coast-charts'
```

## Options

```js
const options = {
  chart: {
    height: 380,
    fontFamily: "Inter, Geist, \"IBM Plex Sans\", system-ui, sans-serif",
    type: "area",
    toolbar: {
      show: false
    }
  },
  series: [
    {
      name: "Downloads",
      data: [3678, 3890, 4077, 3872, 4074, 4339, 4461, 4531, 4639, 4615, 4408, 4373, 4338, 4278, 4360, 4218, 3953, 3699, 3961, 3698, 3460, 3322, 3113, 2903, 2706, 2822]
    }
  ],
  xaxis: {
    categories: ["W1", "W2", "W3", "W4", "W5", "W6", "W7", "W8", "W9", "W10", "W11", "W12", "W13", "W14", "W15", "W16", "W17", "W18", "W19", "W20", "W21", "W22", "W23", "W24", "W25", "W26"]
  },
  dataLabels: {
    enabled: false
  },
  stroke: {
    curve: "straight",
    width: 2
  },
  title: {
    text: "Weekly downloads"
  },
  theme: {
    mode: "light",
    preset: "coastal"
  }
}

const chart = new WestCoastCharts(document.querySelector('#chart'), options)
await chart.render()
```

## Verify

- Text check (Library 1.1.5): load `west-coast-charts/agent/describe` and call `chart.describe({ format: "json" })` for the actual drawn state. The live reader is on this example’s HTML page.
- Command line (Public agent tools 0.2.3, tested with Library 1.1.5; available from the versioned GitHub release and npm, https://westcoast-charts.com/docs/cli/index.md): `wcc chart export area-basic-area.json --out area-basic-area.svg --with-table` (save the options above as JSON first)
