Plot.plot({
width: 640,
height: 640,
inset: 2,
projection: {
type: "azimuthal-equal-area",
rotate: [96, -40],
clip: 24,
domain: d3.geoCircle().center([-96, 40]).radius(24)()
},
marks: [
Plot.geo(nation, {fill: "currentColor", fillOpacity: 0.2}),
Plot.dot(capitals, {x: "longitude", y: "latitude", r: 2.5, fill: "currentColor"}),
Plot.voronoi(capitals, {x: "longitude", y: "latitude", clip: "sphere", title: "state", pointerEvents: "all"}),
Plot.sphere({strokeWidth: 2})
]
})