Public
Edited
Apr 12, 2023
Insert cell
Insert cell
Insert cell
// Getting geo coordinates for bounding box from here: https://geojson.io/#map=4.62/54.02/-2.03
Plot.plot({
projection: {
type: "azimuthal-equal-area",
rotate: [-10, -52],
domain: {
type: "MultiPoint",
coordinates: [
[-9.506469110501314, 58.72781835137775],
[-9.506469110501314, 49.8616876842151],
[2.035158015336208, 49.8616876842151],
[2.035158015336208, 58.72781835137775],
[-9.506469110501314, 58.72781835137775]
]
}
},
marks: [Plot.geo(nation), Plot.geo(statemesh, { strokeOpacity: 0.2 })]
})
Insert cell
StopsGB.tsv
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
Insert cell
Insert cell
uk = FileAttachment("uk-counties.json").json()
Insert cell
nation = topojson.feature(uk, uk.objects.GBR_adm2)
Insert cell
statemesh = topojson.mesh(uk, uk.objects.GBR_adm2.geometries, (a, b) => a !== b)
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