# Vertical Sankey (Sankey example)

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

The same kind of flow drawn top to bottom: a yearly budget split into teams.

- Chart type: `sankey` (Sankey)
- Collection: Sankey · Sankey
- Raw configuration: https://westcoast-charts.com/gallery-src/sankey/vertical-sankey.js
- Standalone example: https://westcoast-charts.com/embed/samples/wcc/gallery/premium/sankey/vertical-sankey.html

## Setup

```js
import WestCoastCharts from 'west-coast-charts'
import types from 'west-coast-charts/types'
import premium from 'west-coast-charts/premium'

WestCoastCharts.use(types).use(premium)
const WestCoastChartsPremium = premium
WestCoastCharts.setLicenseKey(LICENCE_KEY) // paid production licence; localhost evaluation needs no key
```

## Options

```js
const options = {
  chart: {
    height: 520,
    toolbar: {
      show: false
    },
    type: "sankey"
  },
  series: [
    {
      data: [
        ["Budget", "Product", 46],
        ["Budget", "Go-to-market", 32],
        ["Budget", "Operations", 22],
        ["Product", "Engineering", 31],
        ["Product", "Design", 15],
        ["Go-to-market", "Sales", 19],
        ["Go-to-market", "Marketing", 13],
        ["Operations", "People", 12],
        ["Operations", "Facilities", 10]
      ]
    }
  ],
  plotOptions: {
    sankey: {
      orientation: "vertical",
      nodeWidth: 10,
      nodePadding: 22
    }
  },
  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 sankey-vertical-sankey.json --out sankey-vertical-sankey.svg --with-table` (save the options above as JSON first)
