Skip to main content
100%

world map with the world Topojson data

✓ Published0🌍 Public
Nnsatyaprakash22
Last edited Mar 29, 2023
Created on Mar 29, 2023

This example displays a world map rendered as white countries with black borders on a green background. It uses D3 v5 and TopoJSON to load world-atlas data from a CDN, then projects the geographic features with a Natural Earth projection via `geoNaturalEarth1()` and draws them using `geoPath()`. The `feature()` function from TopoJSON converts the TopoJSON topology into GeoJSON for binding to SVG paths.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes