# Vertical dumbbell (Dumbbell example)

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

Start and current salary per level, vertical.

- Chart type: `dumbbell` (Dumbbell)
- Collection: Dumbbell · Dumbbell
- Raw configuration: https://westcoast-charts.com/gallery-src/dumbbell/dumbbell-column.js
- Standalone example: https://westcoast-charts.com/embed/samples/wcc/gallery/dumbbell/dumbbell-column.html

## Setup

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

WestCoastCharts.use(types)
```

## Options

```js
const options = {
  chart: {
    height: 380,
    fontFamily: "Inter, Geist, \"IBM Plex Sans\", system-ui, sans-serif",
    type: "dumbbell",
    toolbar: {
      show: false
    }
  },
  series: [
    {
      name: "Entry k€",
      data: [38, 46, 58, 72, 90]
    },
    {
      name: "Top of band k€",
      data: [48, 60, 76, 95, 124]
    }
  ],
  xaxis: {
    categories: ["L1", "L2", "L3", "L4", "L5"]
  },
  plotOptions: {
    bar: {
      horizontal: false
    }
  },
  title: {
    text: "Salary band by level"
  },
  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 dumbbell-dumbbell-column.json --out dumbbell-dumbbell-column.svg --with-table` (save the options above as JSON first)
