🌍 Public
Viewing a saved revision (read-only)
0e8ae28575744c3a8aa1ff47ae7ab37e
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