# Area with missing data (Area example)

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

Areas with null gaps.

- Chart type: `area` (Area)
- Collection: Area · Area
- Raw configuration: https://westcoast-charts.com/gallery-src/area/area-with-missing-data.js
- Standalone example: https://westcoast-charts.com/embed/samples/wcc/gallery/area/area-with-missing-data.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: "Station 1",
      data: [28, 26, 27, 24, 26, 30, null, null, null, 26, 29, 25, 27, 26, 25, 27, 27, 25, 28, 27]
    },
    {
      name: "Station 2",
      data: [16, 14, 13, 11, 12, 10, 7, 10, 12, 10, 9, 10, 8, null, null, 5, 5, 4, 3, 1]
    }
  ],
  xaxis: {
    categories: ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20"]
  },
  dataLabels: {
    enabled: false
  },
  stroke: {
    width: 2
  },
  title: {
    text: "Rainfall (mm), gaps where no reading"
  },
  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-area-with-missing-data.json --out area-area-with-missing-data.svg --with-table` (save the options above as JSON first)
