Arcs
Flight volumes from a hub; width follows the value, dashes show direction.
Open the chart without page chrome ↗Drawing width at least 900 px. Scroll within the chart on smaller screens.
const options = {
chart: {
height: 480,
toolbar: {
show: false
},
type: "map"
},
series: [
{
name: "Flights / week",
data: [
{
from: [13.4, 52.52],
to: [-74, 40.7],
value: 57,
name: "Berlin → New York"
},
{
from: [13.4, 52.52],
to: [-0.13, 51.5],
value: 48,
name: "Berlin → London"
},
{
from: [13.4, 52.52],
to: [2.35, 48.86],
value: 45,
name: "Berlin → Paris"
},
{
from: [13.4, 52.52],
to: [139.69, 35.69],
value: 54,
name: "Berlin → Tokyo"
},
{
from: [13.4, 52.52],
to: [-118.24, 34.05],
value: 52,
name: "Berlin → Los Angeles"
},
{
from: [13.4, 52.52],
to: [103.82, 1.35],
value: 50,
name: "Berlin → Singapore"
},
{
from: [13.4, 52.52],
to: [77.21, 28.61],
value: 53,
name: "Berlin → Delhi"
},
{
from: [13.4, 52.52],
to: [-46.63, -23.55],
value: 17,
name: "Berlin → São Paulo"
},
{
from: [13.4, 52.52],
to: [151.21, -33.87],
value: 24,
name: "Berlin → Sydney"
},
{
from: [13.4, 52.52],
to: [28.05, -26.2],
value: 38,
name: "Berlin → Johannesburg"
},
{
from: [13.4, 52.52],
to: [-99.13, 19.43],
value: 58,
name: "Berlin → Mexico City"
},
{
from: [13.4, 52.52],
to: [121.47, 31.23],
value: 13,
name: "Berlin → Shanghai"
},
{
from: [13.4, 52.52],
to: [-79.38, 43.65],
value: 7,
name: "Berlin → Toronto"
},
{
from: [13.4, 52.52],
to: [55.27, 25.2],
value: 9,
name: "Berlin → Dubai"
},
{
from: [13.4, 52.52],
to: [72.88, 19.08],
value: 44,
name: "Berlin → Mumbai"
},
{
from: [13.4, 52.52],
to: [126.98, 37.57],
value: 54,
name: "Berlin → Seoul"
},
{
from: [13.4, 52.52],
to: [-3.7, 40.42],
value: 45,
name: "Berlin → Madrid"
},
{
from: [13.4, 52.52],
to: [3.38, 6.52],
value: 60,
name: "Berlin → Lagos"
},
{
from: [13.4, 52.52],
to: [-58.38, -34.6],
value: 7,
name: "Berlin → Buenos Aires"
}
]
}
],
plotOptions: {
map: {
fit: "map"
}
},
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'
import premium from 'west-coast-charts/premium'
import 'west-coast-charts/maps/world' // registers the map shapes
WestCoastCharts.use(types).use(premium)
const WestCoastChartsPremium = premium
WestCoastCharts.setLicenseKey(LICENCE_KEY) // paid production licence; localhost evaluation needs no key
const options = {
chart: {
height: 480,
toolbar: {
show: false
},
type: "map"
},
series: [
{
name: "Flights / week",
data: [
{
from: [13.4, 52.52],
to: [-74, 40.7],
value: 57,
name: "Berlin → New York"
},
{
from: [13.4, 52.52],
to: [-0.13, 51.5],
value: 48,
name: "Berlin → London"
},
{
from: [13.4, 52.52],
to: [2.35, 48.86],
value: 45,
name: "Berlin → Paris"
},
{
from: [13.4, 52.52],
to: [139.69, 35.69],
value: 54,
name: "Berlin → Tokyo"
},
{
from: [13.4, 52.52],
to: [-118.24, 34.05],
value: 52,
name: "Berlin → Los Angeles"
},
{
from: [13.4, 52.52],
to: [103.82, 1.35],
value: 50,
name: "Berlin → Singapore"
},
{
from: [13.4, 52.52],
to: [77.21, 28.61],
value: 53,
name: "Berlin → Delhi"
},
{
from: [13.4, 52.52],
to: [-46.63, -23.55],
value: 17,
name: "Berlin → São Paulo"
},
{
from: [13.4, 52.52],
to: [151.21, -33.87],
value: 24,
name: "Berlin → Sydney"
},
{
from: [13.4, 52.52],
to: [28.05, -26.2],
value: 38,
name: "Berlin → Johannesburg"
},
{
from: [13.4, 52.52],
to: [-99.13, 19.43],
value: 58,
name: "Berlin → Mexico City"
},
{
from: [13.4, 52.52],
to: [121.47, 31.23],
value: 13,
name: "Berlin → Shanghai"
},
{
from: [13.4, 52.52],
to: [-79.38, 43.65],
value: 7,
name: "Berlin → Toronto"
},
{
from: [13.4, 52.52],
to: [55.27, 25.2],
value: 9,
name: "Berlin → Dubai"
},
{
from: [13.4, 52.52],
to: [72.88, 19.08],
value: 44,
name: "Berlin → Mumbai"
},
{
from: [13.4, 52.52],
to: [126.98, 37.57],
value: 54,
name: "Berlin → Seoul"
},
{
from: [13.4, 52.52],
to: [-3.7, 40.42],
value: 45,
name: "Berlin → Madrid"
},
{
from: [13.4, 52.52],
to: [3.38, 6.52],
value: 60,
name: "Berlin → Lagos"
},
{
from: [13.4, 52.52],
to: [-58.38, -34.6],
value: 7,
name: "Berlin → Buenos Aires"
}
]
}
],
plotOptions: {
map: {
fit: "map"
}
},
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 maps-arcs.json --out maps-arcs.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/maps/arcs/index.md … This example uses Premium modules. Compare licences · Embedding in a distributed product?