Skip to main content
100%

USA Country Map with Topojson data

✓ Published1🌍 Public
KKrishnaPriyaKurra
Last edited Apr 3, 2022
Created on Mar 31, 2022

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
MIT Licensed

Similar vizzes