# Shaded bubble (Bubble example)

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

Bubbles with a radial gradient for a spherical look.

- Chart type: `bubble` (Bubble)
- Collection: Bubble · Bubble
- Raw configuration: https://westcoast-charts.com/gallery-src/bubble/3d-bubble.js
- Standalone example: https://westcoast-charts.com/embed/samples/wcc/gallery/bubble/3d-bubble.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: "bubble",
    toolbar: {
      show: false
    }
  },
  series: [
    {
      name: "North",
      data: [
        [4, 41, 64],
        [17, 79, 66],
        [2, 83, 57],
        [1, 55, 30],
        [6, 64, 53],
        [7, 56, 10],
        [5, 42, 57],
        [25, 25, 51]
      ]
    },
    {
      name: "South",
      data: [
        [3, 60, 45],
        [10, 46, 48],
        [8, 26, 39],
        [3, 69, 53],
        [19, 35, 65],
        [4, 87, 27],
        [20, 31, 22],
        [30, 26, 18]
      ]
    },
    {
      name: "East",
      data: [
        [7, 11, 27],
        [26, 42, 33],
        [26, 63, 42],
        [1, 64, 34],
        [6, 88, 33],
        [3, 81, 67],
        [12, 64, 26],
        [11, 89, 55]
      ]
    }
  ],
  fill: {
    type: "gradient",
    gradient: {
      type: "radial",
      shade: "light",
      shadeIntensity: 0.6,
      opacityFrom: 1,
      opacityTo: 0.85,
      stops: [0, 100]
    }
  },
  dataLabels: {
    enabled: false
  },
  xaxis: {
    tickAmount: 6,
    title: {
      text: "Week"
    }
  },
  yaxis: {
    title: {
      text: "Share %"
    }
  },
  title: {
    text: "Market share by week (size = revenue)"
  },
  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 bubble-3d-bubble.json --out bubble-3d-bubble.svg --with-table` (save the options above as JSON first)
