# Team roster (Unit example)

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

One named mark per person; hover shows who.

- Chart type: `unit` (Unit)
- Collection: Unit · Unit & pictogram
- Raw configuration: https://westcoast-charts.com/gallery-src/unit/team-roster.js
- Standalone example: https://westcoast-charts.com/embed/samples/wcc/gallery/unit/team-roster.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: "unit",
    toolbar: {
      show: false
    }
  },
  series: [
    {
      name: "Design",
      data: [
        {
          name: "Ada A",
          id: "Design0"
        },
        {
          name: "Ben B",
          id: "Design1"
        },
        {
          name: "Chen C",
          id: "Design2"
        },
        {
          name: "Dara D",
          id: "Design3"
        },
        {
          name: "Eli E",
          id: "Design4"
        },
        {
          name: "Fay F",
          id: "Design5"
        }
      ]
    },
    {
      name: "Platform",
      data: [
        {
          name: "Fay A",
          id: "Platform0"
        },
        {
          name: "Gus B",
          id: "Platform1"
        },
        {
          name: "Hana C",
          id: "Platform2"
        },
        {
          name: "Ivo D",
          id: "Platform3"
        },
        {
          name: "Jun E",
          id: "Platform4"
        },
        {
          name: "Kai F",
          id: "Platform5"
        },
        {
          name: "Lea G",
          id: "Platform6"
        },
        {
          name: "Mo H",
          id: "Platform7"
        },
        {
          name: "Nia I",
          id: "Platform8"
        },
        {
          name: "Oli J",
          id: "Platform9"
        },
        {
          name: "Pia K",
          id: "Platform10"
        }
      ]
    },
    {
      name: "Mobile",
      data: [
        {
          name: "Kai A",
          id: "Mobile0"
        },
        {
          name: "Lea B",
          id: "Mobile1"
        },
        {
          name: "Mo C",
          id: "Mobile2"
        },
        {
          name: "Nia D",
          id: "Mobile3"
        },
        {
          name: "Oli E",
          id: "Mobile4"
        },
        {
          name: "Pia F",
          id: "Mobile5"
        },
        {
          name: "Ada G",
          id: "Mobile6"
        },
        {
          name: "Ben H",
          id: "Mobile7"
        }
      ]
    },
    {
      name: "Data",
      data: [
        {
          name: "Pia A",
          id: "Data0"
        },
        {
          name: "Ada B",
          id: "Data1"
        },
        {
          name: "Ben C",
          id: "Data2"
        },
        {
          name: "Chen D",
          id: "Data3"
        },
        {
          name: "Dara E",
          id: "Data4"
        }
      ]
    }
  ],
  plotOptions: {
    unit: {
      layout: "columns",
      shape: "pictogram",
      pictogram: {
        mark: "person"
      },
      clusterLabels: {
        show: true,
        position: "bottom"
      }
    }
  },
  title: {
    text: "Team roster (30 people)"
  },
  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 unit-team-roster.json --out unit-team-roster.svg --with-table` (save the options above as JSON first)
