🌍 Public
Viewing a saved revision (read-only)
2aa7bda7fc10428c943c4b85003f9b95
Country Map
This example displays a single country, the United States of America, as a green SVG path with a black stroke on a blue background. It uses `d3.geoAlbersUsa()` to project the country’s boundaries from the world-atlas TopoJSON dataset. The code fetches the `countries-110m.json` file, filters the GeoJSON features by name, and renders the geometry with `d3.geoPath`. The projection is scaled and translated using the `d3.geoAlbersUsa` API to center the map.
AI-generated description