Public
Edited
Mar 18, 2024
Insert cell
Insert cell
Insert cell
Insert cell
Plot.plot({
projection: { type: "orthographic", rotate: [-150, 45] },
marks: [
Plot.sphere(),
Plot.graticule(),
Plot.arrow(links, {
x1: "from_lon",
x2: "to_lon",
y1: "from_lat",
y2: "to_lat"
})
]
})
Insert cell
Insert cell
Plot.plot({
projection: { type: "orthographic", rotate: [-150, 45] },
marks: [
Plot.sphere(),
Plot.graticule(),
Plot.arrow(links, {
x1: "from_lon",
x2: "to_lon",
y1: "from_lat",
y2: "to_lat",
strokeWidth: "count"
})
]
})
Insert cell
Insert cell
Plot.plot({
projection: { type: "orthographic", rotate: [-150, 45] },
marks: [
Plot.sphere(),
Plot.graticule(),
Plot.arrow(links, {
x1: "from_lon",
x2: "to_lon",
y1: "from_lat",
y2: "to_lat",
strokeWidth: "count"
})
],
strokeWidth: {
type: "log",
domain: d3.range(links.map(d => d.count)),
range: [1, 5]
}
})
Insert cell
Insert cell
Plot.plot({
projection: { type: "orthographic", rotate: [-150, 45] },
marks: [
Plot.sphere(),
Plot.graticule(),
Plot.arrow(links, {
x1: "from_lon",
x2: "to_lon",
y1: "from_lat",
y2: "to_lat",
strokeWidth: d => d.count / 100
})
]
})
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more