Unlisted
Edited
Apr 21, 2023
1 fork
Insert cell
Insert cell
Plot.plot({
projection: "equal-earth",
marks: [
Plot.sphere(),
Plot.geo(land, {fill: "currentColor", fillOpacity: 0.3}),
Plot.link({length: 1}, {curve: "linear", stroke: "red", ...xy}),
Plot.link({length: 1}, {markerStart: "dot", markerEnd: "arrow", strokeWidth: 1.5, ...xy})
]
})
Insert cell
xy = ({x1: -122.4194, y1: 37.7749, x2: 2.3522, y2: 48.8566})
Insert cell
world = FileAttachment("countries-110m.json").json()
Insert cell
land = topojson.feature(world, world.objects.land)
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