# Round cells (Heatmap example)

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

Circular cells with value labels.

- Chart type: `heatmap` (Heatmap)
- Collection: Heatmap · Heatmap
- Raw configuration: https://westcoast-charts.com/gallery-src/heatmap/rounded.js
- Standalone example: https://westcoast-charts.com/embed/samples/wcc/gallery/heatmap/rounded.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: "heatmap",
    toolbar: {
      show: false
    }
  },
  series: [
    {
      name: "Q1",
      data: [
        {
          x: "Platform",
          y: 55
        },
        {
          x: "Payments",
          y: 40
        },
        {
          x: "Search",
          y: 63
        },
        {
          x: "Mobile",
          y: 81
        },
        {
          x: "Data",
          y: 42
        },
        {
          x: "Growth",
          y: 3
        }
      ]
    },
    {
      name: "Q2",
      data: [
        {
          x: "Platform",
          y: 50
        },
        {
          x: "Payments",
          y: 90
        },
        {
          x: "Search",
          y: 33
        },
        {
          x: "Mobile",
          y: 53
        },
        {
          x: "Data",
          y: 92
        },
        {
          x: "Growth",
          y: 63
        }
      ]
    },
    {
      name: "Q3",
      data: [
        {
          x: "Platform",
          y: 44
        },
        {
          x: "Payments",
          y: 57
        },
        {
          x: "Search",
          y: 51
        },
        {
          x: "Mobile",
          y: 30
        },
        {
          x: "Data",
          y: 29
        },
        {
          x: "Growth",
          y: 86
        }
      ]
    },
    {
      name: "Q4",
      data: [
        {
          x: "Platform",
          y: 50
        },
        {
          x: "Payments",
          y: 81
        },
        {
          x: "Search",
          y: 40
        },
        {
          x: "Mobile",
          y: 15
        },
        {
          x: "Data",
          y: 13
        },
        {
          x: "Growth",
          y: 80
        }
      ]
    }
  ],
  plotOptions: {
    heatmap: {
      shape: "circle"
    }
  },
  colors: ["#7c3aed"],
  dataLabels: {
    enabled: true
  },
  title: {
    text: "Goal completion by team (%)"
  },
  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 heatmap-rounded.json --out heatmap-rounded.svg --with-table` (save the options above as JSON first)
