🌍 Public
Viewing a saved revision (read-only)
a943ef3e3eeb4ebbac8c2fe3ef8796b5
Fixed projection for US States
This example displays US states grouped into four census regions—Northeast, Midwest, South, and West—each filled with a distinct color. It uses d3.json to load the TopoJSON file, topojson.merge to combine state geometries by region, and d3.geoPath to render the resulting shapes as SVG paths. State groupings are defined using d3.set of FIPS codes, and CSS classes control the fill colors.
AI-generated description