Store locations
Stores as house marks on real x/y coordinates, coloured by format.
Open the chart without page chrome ↗
const options = {
chart: {
height: 400,
fontFamily: "Inter, Geist, \"IBM Plex Sans\", system-ui, sans-serif",
type: "unit",
toolbar: {
show: false
}
},
series: [
{
name: "Flagship",
data: [
{
x: 62.1,
y: 33.1
},
{
x: 37.1,
y: 18.9
},
{
x: 33.5,
y: 25.3
},
{
x: 91.5,
y: 53.8
},
{
x: 77.5,
y: 10.2
},
{
x: 6.1,
y: 19.9
},
{
x: 20.6,
y: 41.9
},
{
x: 7.9,
y: 34.4
}
]
},
{
name: "Mall",
data: [
{
x: 31.9,
y: 36.6
},
{
x: 48,
y: 57.5
},
{
x: 98.6,
y: 42.2
},
{
x: 77.2,
y: 40.7
},
{
x: 0.2,
y: 7.7
},
{
x: 12.6,
y: 38.6
},
{
x: 32,
y: 41.3
},
{
x: 58.6,
y: 57.6
},
{
x: 74.1,
y: 22.2
},
{
x: 17.4,
y: 33.3
},
{
x: 55.6,
y: 49.8
},
{
x: 33,
y: 38.4
},
{
x: 31.3,
y: 36.1
},
{
x: 17.8,
y: 37.8
},
{
x: 24.7,
y: 41.9
},
{
x: 64.4,
y: 38.9
},
{
x: 38.9,
y: 42.2
},
{
x: 86,
y: 50.9
},
{
x: 14.6,
y: 2.5
},
{
x: 6.3,
y: 34.3
},
{
x: 94.4,
y: 48
},
{
x: 66.3,
y: 1.5
},
{
x: 74.4,
y: 27.4
},
{
x: 60.7,
y: 27.4
}
]
},
{
name: "Outlet",
data: [
{
x: 41.3,
y: 50.3
},
{
x: 25.6,
y: 55.4
},
{
x: 85.8,
y: 2.8
},
{
x: 35,
y: 41.7
},
{
x: 90.7,
y: 3
},
{
x: 17.5,
y: 46.8
},
{
x: 90.6,
y: 30.2
},
{
x: 67.9,
y: 45.1
},
{
x: 73.8,
y: 0.2
},
{
x: 98.2,
y: 6.5
},
{
x: 95.5,
y: 1.6
},
{
x: 43.6,
y: 42.1
},
{
x: 93.3,
y: 20.8
},
{
x: 95.3,
y: 5.8
}
]
}
],
plotOptions: {
unit: {
layout: "scatter",
shape: "pictogram",
pictogram: {
mark: "house"
},
size: 9,
scatter: {
y: "value",
xTitle: "km east",
yTitle: "km north"
}
}
},
title: {
text: "Store network"
},
theme: {
mode: "light",
preset: "coastal"
}
}
const chart = new WestCoastCharts(document.querySelector('#chart'), options)
chart.render()import WestCoastCharts from 'west-coast-charts'
import types from 'west-coast-charts/types'
WestCoastCharts.use(types)
const options = {
chart: {
height: 400,
fontFamily: "Inter, Geist, \"IBM Plex Sans\", system-ui, sans-serif",
type: "unit",
toolbar: {
show: false
}
},
series: [
{
name: "Flagship",
data: [
{
x: 62.1,
y: 33.1
},
{
x: 37.1,
y: 18.9
},
{
x: 33.5,
y: 25.3
},
{
x: 91.5,
y: 53.8
},
{
x: 77.5,
y: 10.2
},
{
x: 6.1,
y: 19.9
},
{
x: 20.6,
y: 41.9
},
{
x: 7.9,
y: 34.4
}
]
},
{
name: "Mall",
data: [
{
x: 31.9,
y: 36.6
},
{
x: 48,
y: 57.5
},
{
x: 98.6,
y: 42.2
},
{
x: 77.2,
y: 40.7
},
{
x: 0.2,
y: 7.7
},
{
x: 12.6,
y: 38.6
},
{
x: 32,
y: 41.3
},
{
x: 58.6,
y: 57.6
},
{
x: 74.1,
y: 22.2
},
{
x: 17.4,
y: 33.3
},
{
x: 55.6,
y: 49.8
},
{
x: 33,
y: 38.4
},
{
x: 31.3,
y: 36.1
},
{
x: 17.8,
y: 37.8
},
{
x: 24.7,
y: 41.9
},
{
x: 64.4,
y: 38.9
},
{
x: 38.9,
y: 42.2
},
{
x: 86,
y: 50.9
},
{
x: 14.6,
y: 2.5
},
{
x: 6.3,
y: 34.3
},
{
x: 94.4,
y: 48
},
{
x: 66.3,
y: 1.5
},
{
x: 74.4,
y: 27.4
},
{
x: 60.7,
y: 27.4
}
]
},
{
name: "Outlet",
data: [
{
x: 41.3,
y: 50.3
},
{
x: 25.6,
y: 55.4
},
{
x: 85.8,
y: 2.8
},
{
x: 35,
y: 41.7
},
{
x: 90.7,
y: 3
},
{
x: 17.5,
y: 46.8
},
{
x: 90.6,
y: 30.2
},
{
x: 67.9,
y: 45.1
},
{
x: 73.8,
y: 0.2
},
{
x: 98.2,
y: 6.5
},
{
x: 95.5,
y: 1.6
},
{
x: 43.6,
y: 42.1
},
{
x: 93.3,
y: 20.8
},
{
x: 95.3,
y: 5.8
}
]
}
],
plotOptions: {
unit: {
layout: "scatter",
shape: "pictogram",
pictogram: {
mark: "house"
},
size: 9,
scatter: {
y: "value",
xTitle: "km east",
yTitle: "km north"
}
}
},
title: {
text: "Store network"
},
theme: {
mode: "light",
preset: "coastal"
}
}
const chart = new WestCoastCharts(document.querySelector('#chart'), options)
await chart.render() Waiting for the chart.
Open Data & agent view to read this chart through chart.describe().
Read from the running library through its optional agent/describe module. Text, table and JSON share the same snapshot. Demo data only.
$ wcc chart export unit-store-locations.json --out unit-store-locations.svg --with-table Public agent tools 0.2.3, tested with Library 1.1.5; available from the versioned GitHub release and npm. Save a JSON spec first and check the loaded runtime and supported modules before rendering. Command reference
Loading /gallery/unit/store-locations/index.md …