# Node Overlapping (Sankey example)

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

Thirty small sources into five buckets: nodes and labels stay apart.

Why it matters: many small nodes in one column never overlap: padding shrinks before nodes do, minNodeHeight keeps tiny flows visible, labels avoid each other and the plot edge

- Chart type: `sankey` (Sankey)
- Collection: Sankey · Sankey
- Raw configuration: https://westcoast-charts.com/gallery-src/sankey/node-overlapping.js
- Standalone example: https://westcoast-charts.com/embed/samples/wcc/gallery/premium/sankey/node-overlapping.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: 620,
    toolbar: {
      show: false
    },
    type: "sankey"
  },
  series: [
    {
      data: [
        ["Store 1", "East", 120],
        ["Store 2", "West", 15],
        ["Store 3", "South", 25],
        ["Store 4", "South", 20],
        ["Store 5", "South", 5],
        ["Store 6", "East", 27],
        ["Store 7", "South", 21],
        ["Store 8", "North", 9],
        ["Store 9", "Online", 31],
        ["Store 10", "West", 5],
        ["Store 11", "South", 15],
        ["Store 12", "North", 7],
        ["Store 13", "West", 31],
        ["Store 14", "North", 3],
        ["Store 15", "East", 15],
        ["Store 16", "North", 12],
        ["Store 17", "West", 30],
        ["Store 18", "South", 7],
        ["Store 19", "Online", 5],
        ["Store 20", "West", 7],
        ["Store 21", "East", 2],
        ["Store 22", "West", 26],
        ["Store 23", "South", 4],
        ["Store 24", "South", 14],
        ["Store 25", "West", 2],
        ["Store 26", "East", 3],
        ["Store 27", "East", 13],
        ["Store 28", "East", 15],
        ["Store 29", "West", 24],
        ["Store 30", "South", 5]
      ]
    }
  ],
  plotOptions: {
    sankey: {
      nodePadding: 10,
      minNodeHeight: 3
    }
  },
  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-node-overlapping.json --out sankey-node-overlapping.svg --with-table` (save the options above as JSON first)
