Public
Edited
May 10, 2023
5 forks
4 stars
Insert cell
Insert cell
Plot.plot({
projection: "albers-usa",
marks: [
Plot.rect(countyboxes, {
x1: "0", // or ([x1]) => x1
y1: "1", // or ([, y1]) => y1
x2: "2", // or ([,, x2]) => x2
y2: "3", // or ([,,, y2]) => y2
stroke: "currentColor"
})
]
})
Insert cell
countyboxes = {
const counties = topojson.feature(us, us.objects.counties).features;
return counties.map((d) => d3.geoBounds(d).flat());
}
Insert cell
us = FileAttachment("us-counties-10m.json").json()
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