# Multi group (Slope example)

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

Three periods with two highlighted regions.

- Chart type: `slope` (Slope)
- Collection: Slope · Slope
- Raw configuration: https://westcoast-charts.com/gallery-src/slope/multi-group.js
- Standalone example: https://westcoast-charts.com/embed/samples/wcc/gallery/slope/multi-group.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: 420,
    fontFamily: "Inter, Geist, \"IBM Plex Sans\", system-ui, sans-serif",
    type: "slope",
    toolbar: {
      show: false
    }
  },
  series: [
    {
      name: "North",
      data: [101, 101, 95]
    },
    {
      name: "South",
      data: [97, 99, 97]
    },
    {
      name: "East",
      data: [106, 104, 101]
    },
    {
      name: "West",
      data: [105, 101, 108]
    },
    {
      name: "Central",
      data: [107, 115, 116]
    },
    {
      name: "Central",
      data: [93, 86, 93]
    },
    {
      name: "Islands",
      data: [108, 101, 95]
    }
  ],
  xaxis: {
    categories: ["2022", "2024", "2026"]
  },
  plotOptions: {
    slope: {
      highlight: ["North", "Islands"]
    }
  },
  title: {
    text: "Revenue index by region"
  },
  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 slope-multi-group.json --out slope-multi-group.svg --with-table` (save the options above as JSON first)
