Public
Edited
Mar 23, 2023
Insert cell
Insert cell
Insert cell
Plot.plot({
projection: "albers-usa",
width,
marks: [
Plot.geo(nation, { strokeOpacity: 0.25 }),
Plot.geo(states, { strokeOpacity: 0.25 }),
Plot.dot(coordinates, {x: "longitude", y: "latitude", symbol: "circle", r: 0.5 })
]
})
Insert cell
viewof version = Inputs.radio(["non-contiguous", "contiguous"], {label: "select version", value: "contiguous"})
Insert cell
viewof spacing = Inputs.select(["100", "50", "20", "10", "5"], {label: "select spacing (miles)", value: "50"})
Insert cell
coordinates = d3.csv(`https://raw.githubusercontent.com/russellsamora/us-grid-points/main/output/${version}/us-grid-points-${spacing}mi.csv`)
Insert cell
import {us} from "@observablehq/us-geographic-data"
Insert cell
nation = topojson.feature(us, us.objects.nation)
Insert cell
counties = topojson.feature(us, us.objects.counties)
Insert cell
states = topojson.feature(us, us.objects.states)
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