# 100% stacked column (Column example)

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

Device share per month, normalised to 100%.

- Chart type: `bar` (Bar)
- Collection: Column · Column
- Raw configuration: https://westcoast-charts.com/gallery-src/column/stacked-column-100.js
- Standalone example: https://westcoast-charts.com/embed/samples/wcc/gallery/column/stacked-column-100.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: "bar",
    stacked: true,
    stackType: "100%",
    toolbar: {
      show: false
    }
  },
  series: [
    {
      name: "Desktop",
      data: [33, 41, 32, 43, 33, 58, 34, 53, 39, 51, 34, 29]
    },
    {
      name: "Mobile",
      data: [27, 31, 36, 27, 35, 41, 22, 30, 23, 20, 24, 35]
    },
    {
      name: "Tablet",
      data: [22, 23, 21, 22, 21, 24, 21, 23, 24, 21, 22, 21]
    }
  ],
  xaxis: {
    categories: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
  },
  dataLabels: {
    enabled: false
  },
  title: {
    text: "Sessions by device (share)"
  },
  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 column-stacked-column-100.json --out column-stacked-column-100.svg --with-table` (save the options above as JSON first)
