🌍 Public
Viewing a saved revision (read-only)
cddb4e522e0d4bbdaf799b5bfc2f874f
USA Country Map with Topojson data
This map of the United States renders state boundaries using a yellow fill with blue outlines. The visualization employs D3’s `geoAlbersUsa` projection and `geoPath` to generate the SVG paths from TopoJSON data fetched from a GitHub gist. State names appear as tooltips via appended `title` elements, and hovering changes the fill color to green. The code uses `topojson.feature` to convert the TopoJSON topology into GeoJSON features, and relies on the `geo-albers-usa-territories` library for the projection. The SVG canvas is fixed at 960 by 500 pixels, with styling applied via an external CSS file.
AI-generated description