# Task mix by team (Trellis example)

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

Task type split (Feature, Bug, Chore, Research) per team as donut panels with the same colour order.

- Chart type: `donut` (Donut)
- Collection: Trellis · Trellis
- Raw configuration: https://westcoast-charts.com/gallery-src/trellis/task-mix-by-team.js
- Standalone example: https://westcoast-charts.com/embed/samples/wcc/gallery/trellis/task-mix-by-team.html

## Setup

```js
import WestCoastCharts from 'west-coast-charts'
import types from 'west-coast-charts/types'
import trellis from 'west-coast-charts/features/trellis'

WestCoastCharts.use(types).use(trellis)
```

## Options

```js
const options = {
  chart: {
    height: "auto",
    fontFamily: "Inter, Geist, \"IBM Plex Sans\", system-ui, sans-serif",
    type: "donut",
    toolbar: {
      show: false
    }
  },
  series: [
    {
      name: "Tickets",
      team: "Platform",
      data: [23, 14, 15, 6]
    },
    {
      name: "Tickets",
      team: "Payments",
      data: [5, 39, 18, 5]
    },
    {
      name: "Tickets",
      team: "Search",
      data: [15, 30, 14, 17]
    },
    {
      name: "Tickets",
      team: "Mobile",
      data: [40, 35, 25, 5]
    },
    {
      name: "Tickets",
      team: "Data",
      data: [37, 21, 23, 19]
    },
    {
      name: "Tickets",
      team: "Growth",
      data: [6, 19, 18, 25]
    }
  ],
  labels: ["Feature", "Bug", "Chore", "Research"],
  dataLabels: {
    enabled: false
  },
  trellis: {
    by: "team",
    columns: 3,
    aspectRatio: 1.2,
    legend: "shared"
  },
  title: {
    text: "Tickets by type"
  },
  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 trellis-task-mix-by-team.json --out trellis-task-mix-by-team.svg --with-table` (save the options above as JSON first)
