Public
Edited
Oct 17, 2024
Insert cell
Insert cell
Plot.plot({
projection: "albers-usa",
r: {range: [0, 16]},
color: {scheme: "spectral", label: "hmm", legend: true},
marks: [
Plot.geo(statemesh, {strokeOpacity: 0.5}),
Plot.geo(nation),
Plot.dot(vehicles, Plot.hexbin({r:"sum"}, {x: "1", y: "0", r: "Electric (EV)"}))
]
})
Insert cell
nation = topojson.feature(us, us.objects.nation)
Insert cell
statemesh = topojson.feature(us, us.objects.states)
Insert cell
us = FileAttachment("us-counties-10m.json").json()
Insert cell
vehicles = FileAttachment("Vehicle Registration Final@1.tsv").tsv({typed: true})
Insert cell
Data is from: https://afdc.energy.gov/vehicle-registration?year=2023
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