Skip to main content
100%

Topojson World Map

✓ Published1🌍 Public
VVenkata Sai Preetham
Last edited Jul 10, 2022
Created on Jul 10, 2022
Forked from Choropleth Map

This example displays a world map using the Natural Earth projection, rendered as pink countries with faint black outlines against a pale background. The map is generated by loading country boundary data from the `world-atlas` package, then passing the GeoJSON through the TopoJSON `feature` function to extract features. D3’s `geoPath` and `geoNaturalEarth1` APIs construct the projected SVG paths, while an additional `sphere` path outlines the globe. The visualization relies on D3 v5 and TopoJSON v3 to combine geospatial data with SVG rendering.

AI-generated description
MIT Licensed

Similar vizzes