# Stacked column (Column example)

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

Support tickets by severity, stacked with totals.

- Chart type: `bar` (Bar)
- Collection: Column · Column
- Raw configuration: https://westcoast-charts.com/gallery-src/column/stacked-column.js
- Standalone example: https://westcoast-charts.com/embed/samples/wcc/gallery/column/stacked-column.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,
    toolbar: {
      show: false
    }
  },
  series: [
    {
      name: "Low",
      data: [34, 28, 12, 24, 35, 4, 26, 39, 28, 25]
    },
    {
      name: "Medium",
      data: [23, 18, 13, 20, 8, 12, 6, 24, 15, 8]
    },
    {
      name: "High",
      data: [14, 18, 16, 11, 15, 5, 17, 13, 5, 9]
    },
    {
      name: "Critical",
      data: [6, 6, 13, 6, 7, 9, 8, 13, 10, 9]
    }
  ],
  xaxis: {
    categories: ["Sprint 1", "Sprint 2", "Sprint 3", "Sprint 4", "Sprint 5", "Sprint 6", "Sprint 7", "Sprint 8", "Sprint 9", "Sprint 10"]
  },
  plotOptions: {
    bar: {
      borderRadius: 3,
      borderRadiusApplication: "end",
      borderRadiusWhenStacked: "last",
      dataLabels: {
        total: {
          enabled: true
        }
      }
    }
  },
  dataLabels: {
    enabled: false
  },
  title: {
    text: "Tickets by severity"
  },
  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.json --out column-stacked-column.svg --with-table` (save the options above as JSON first)
