map = Plot.plot({
projection: "identity",
width: 975,
length: { range: [0, 200] },
marks: [
Plot.geo(nation, { fill: "#e0e0e0" }),
Plot.geo(statemesh, { stroke: "white" }),
Plot.spike(counties.features, Plot.centroid({ stroke: "red", length: (d) => population.get(d.id) })),
legendSpike([2e6, 4e6, 6e6, 8e6, 10e6], {stroke: "red"})
]
})