Skip to main content
100%

Country Map

✓ Published1🌍 Public
VVaishnavi6199
Last edited Apr 4, 2022
Created on Apr 4, 2022

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

Similar vizzes