# Semi circle gauge (Gauge example)

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

Half dial with a below-zero domain.

- Chart type: `gauge` (Gauge)
- Collection: Gauge · Gauge
- Raw configuration: https://westcoast-charts.com/gallery-src/gauge/semi-circle-gauge.js
- Standalone example: https://westcoast-charts.com/embed/samples/wcc/gallery/gauge/semi-circle-gauge.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: 300,
    fontFamily: "Inter, Geist, \"IBM Plex Sans\", system-ui, sans-serif",
    type: "gauge",
    toolbar: {
      show: false
    }
  },
  series: [-12],
  labels: ["Net margin %"],
  plotOptions: {
    radialBar: {
      min: -50,
      max: 50,
      startAngle: -90,
      endAngle: 90,
      bands: [
        {
          from: -50,
          to: 0,
          color: "#fecaca"
        },
        {
          from: 0,
          to: 50,
          color: "#bbf7d0"
        }
      ],
      dataLabels: {
        name: {
          show: true
        }
      }
    }
  },
  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 gauge-semi-circle-gauge.json --out gauge-semi-circle-gauge.svg --with-table` (save the options above as JSON first)
