Public
Edited
May 12, 2023
7 forks
Importers
5 stars
Insert cell
Insert cell
Plot.plot({
projection: {
type: "equal-earth",
rotate: [90, 0]
},
color: {
legend: true,
label: "Distance from Tonga (km)",
transform: (d) => 111.2 * d, // degrees to km
zero: true
},
marks: [
Plot.geo(land),
Plot.geo([0.5, 179.5].concat(d3.range(10, 171, 10)), {
geometry: d3.geoCircle().center([-175.38, -20.57]).radius((r) => r),
stroke: (r) => r,
strokeWidth: 2
}),
Plot.sphere()
]
})
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