Public
Edited
May 12, 2023
7 forks
Importers
8 stars
Insert cell
Insert cell
Plot.plot({
marginLeft: 0,
marginRight: 0,
projection: "albers",
fx: {
interval: d3.utcYear.every(10),
tickFormat: (d) => `${d.getUTCFullYear()}’s`,
label: null
},
marks: [
Plot.geo(statemesh, {strokeOpacity: 0.1}),
Plot.geo(nation),
Plot.dot(walmarts, {fx: "date", x: "longitude", y: "latitude", r: 1, fill: "currentColor"})
]
})
Insert cell
walmarts = FileAttachment("walmarts.tsv").tsv({typed: true})
Insert cell
us = FileAttachment("us-counties-10m.json").json()
Insert cell
statemesh = topojson.mesh(us, us.objects.states)
Insert cell
nation = topojson.feature(us, us.objects.nation)
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