Skip to main content
100%

world map with the world Topojson data.

✓ Published1🌍 Public
Nnsatyaprakash22
Last edited Mar 27, 2023
Created on Mar 27, 2023
Forked from D3 Starter

This visualization displays a world map using D3 version 5, rendering country boundaries as white-filled paths with black strokes on a green background. The map uses the natural Earth projection via `geoNaturalEarth1` and projects geographic coordinates with `d3.geoPath`. Country geometries come from the world-atlas TopoJSON dataset, loaded through the `topojson` library’s `feature` method. The SVG output is fixed at 990 by 485 pixels, and the code asynchronously fetches the JSON data before appending each country path to the chart.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes