# Dashed lines (Line example)

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

Actual, plan and forecast lines with different dash patterns.

- Chart type: `line` (Line)
- Collection: Line · Line
- Raw configuration: https://westcoast-charts.com/gallery-src/line/dashed-line.js
- Standalone example: https://westcoast-charts.com/embed/samples/wcc/gallery/line/dashed-line.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: "line",
    toolbar: {
      show: false
    }
  },
  series: [
    {
      name: "Actual",
      data: [57, 60, 64, 66, 63, 67, 70, 67, 68, 64, 66, 68]
    },
    {
      name: "Plan",
      data: [64, 64, 65, 65, 67, 67, 67, 65, 65, 65, 63, 64]
    },
    {
      name: "Forecast",
      data: [60, 62, 62, 60, 61, 63, 61, 62, 59, 58, 56, 55]
    }
  ],
  stroke: {
    width: [3, 2, 2],
    dashArray: [0, 6, 2]
  },
  xaxis: {
    categories: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
  },
  title: {
    text: "Bookings vs plan (k)"
  },
  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 line-dashed-line.json --out line-dashed-line.svg --with-table` (save the options above as JSON first)
