# Image markers (Scatter example)

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

Scatter points drawn as our own generated icon images.

- Chart type: `scatter` (Scatter)
- Collection: Scatter · Scatter
- Raw configuration: https://westcoast-charts.com/gallery-src/scatter/scatter-images.js
- Standalone example: https://westcoast-charts.com/embed/samples/wcc/gallery/scatter/scatter-images.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: "scatter",
    toolbar: {
      show: false
    }
  },
  series: [
    {
      name: "Video",
      data: [
        [12, 56],
        [4, 90],
        [20, 86],
        [12, 33],
        [9, 31],
        [2, 33],
        [16, 64],
        [8, 53],
        [14, 14],
        [1, 27],
        [15, 40],
        [17, 66]
      ]
    },
    {
      name: "Podcast",
      data: [
        [27, 49],
        [9, 74],
        [21, 46],
        [18, 62],
        [11, 73],
        [10, 70],
        [3, 34],
        [22, 86],
        [4, 52],
        [15, 10],
        [9, 68],
        [17, 75]
      ]
    }
  ],
  fill: {
    type: "image",
    opacity: 1,
    image: {
      src: ["data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2232%22%20height%3D%2232%22%3E%3Ccircle%20cx%3D%2216%22%20cy%3D%2216%22%20r%3D%2215%22%20fill%3D%22%23e11d48%22%2F%3E%3Ctext%20x%3D%2216%22%20y%3D%2221%22%20font-family%3D%22sans-serif%22%20font-size%3D%2214%22%20font-weight%3D%22700%22%20text-anchor%3D%22middle%22%20fill%3D%22%23fff%22%3E%E2%96%B6%3C%2Ftext%3E%3C%2Fsvg%3E", "data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2232%22%20height%3D%2232%22%3E%3Ccircle%20cx%3D%2216%22%20cy%3D%2216%22%20r%3D%2215%22%20fill%3D%22%237c3aed%22%2F%3E%3Ctext%20x%3D%2216%22%20y%3D%2221%22%20font-family%3D%22sans-serif%22%20font-size%3D%2214%22%20font-weight%3D%22700%22%20text-anchor%3D%22middle%22%20fill%3D%22%23fff%22%3E%E2%99%AA%3C%2Ftext%3E%3C%2Fsvg%3E"],
      width: 28,
      height: 28
    }
  },
  markers: {
    size: 14
  },
  legend: {
    markers: {
      size: 7
    }
  },
  xaxis: {
    tickAmount: 6,
    title: {
      text: "Day"
    }
  },
  yaxis: {
    title: {
      text: "Engagement"
    }
  },
  title: {
    text: "Content engagement by format"
  },
  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 scatter-scatter-images.json --out scatter-scatter-images.svg --with-table` (save the options above as JSON first)
