# Startup funding (Unit example)

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

Each startup is a bubble sized by funding, packed and coloured by stage.

- Chart type: `unit` (Unit)
- Collection: Unit · Unit & pictogram
- Raw configuration: https://westcoast-charts.com/gallery-src/unit/startup-funding.js
- Standalone example: https://westcoast-charts.com/embed/samples/wcc/gallery/unit/startup-funding.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: 420,
    fontFamily: "Inter, Geist, \"IBM Plex Sans\", system-ui, sans-serif",
    type: "unit",
    toolbar: {
      show: false
    }
  },
  series: [
    {
      name: "Seed",
      data: [
        {
          name: "Seed #1",
          value: 1.8
        },
        {
          name: "Seed #2",
          value: 1
        },
        {
          name: "Seed #3",
          value: 1.1
        },
        {
          name: "Seed #4",
          value: 1.2
        },
        {
          name: "Seed #5",
          value: 1.6
        },
        {
          name: "Seed #6",
          value: 1.3
        },
        {
          name: "Seed #7",
          value: 1.6
        },
        {
          name: "Seed #8",
          value: 1.6
        },
        {
          name: "Seed #9",
          value: 0.9
        },
        {
          name: "Seed #10",
          value: 1.3
        },
        {
          name: "Seed #11",
          value: 0.8
        },
        {
          name: "Seed #12",
          value: 2.2
        },
        {
          name: "Seed #13",
          value: 1.9
        },
        {
          name: "Seed #14",
          value: 1.4
        },
        {
          name: "Seed #15",
          value: 1.3
        },
        {
          name: "Seed #16",
          value: 1.4
        },
        {
          name: "Seed #17",
          value: 0.8
        },
        {
          name: "Seed #18",
          value: 1.8
        },
        {
          name: "Seed #19",
          value: 1.5
        },
        {
          name: "Seed #20",
          value: 1
        },
        {
          name: "Seed #21",
          value: 2.2
        },
        {
          name: "Seed #22",
          value: 1.2
        }
      ]
    },
    {
      name: "Series A",
      data: [
        {
          name: "Series A #1",
          value: 7
        },
        {
          name: "Series A #2",
          value: 9.2
        },
        {
          name: "Series A #3",
          value: 4.8
        },
        {
          name: "Series A #4",
          value: 9.6
        },
        {
          name: "Series A #5",
          value: 7.4
        },
        {
          name: "Series A #6",
          value: 4.4
        },
        {
          name: "Series A #7",
          value: 9.6
        },
        {
          name: "Series A #8",
          value: 4.6
        },
        {
          name: "Series A #9",
          value: 7.1
        },
        {
          name: "Series A #10",
          value: 7.9
        },
        {
          name: "Series A #11",
          value: 11.9
        },
        {
          name: "Series A #12",
          value: 6.3
        }
      ]
    },
    {
      name: "Series B",
      data: [
        {
          name: "Series B #1",
          value: 31
        },
        {
          name: "Series B #2",
          value: 23.7
        },
        {
          name: "Series B #3",
          value: 21.3
        },
        {
          name: "Series B #4",
          value: 38
        },
        {
          name: "Series B #5",
          value: 18.7
        },
        {
          name: "Series B #6",
          value: 27.5
        },
        {
          name: "Series B #7",
          value: 37.8
        }
      ]
    },
    {
      name: "Growth",
      data: [
        {
          name: "Growth #1",
          value: 146.3
        },
        {
          name: "Growth #2",
          value: 66.1
        },
        {
          name: "Growth #3",
          value: 133.7
        }
      ]
    }
  ],
  plotOptions: {
    unit: {
      layout: "packed",
      sizeByValue: {
        enabled: true
      },
      tooltip: {
        formatter: (o) => o.name + ': €' + o.value + 'M'
      }
    }
  },
  title: {
    text: "Portfolio by funding (€M)"
  },
  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-startup-funding.json --out unit-startup-funding.svg --with-table` (save the options above as JSON first)
