Skip to main content
100%

World map with D3.js!

✓ Published0🌍 Public
TTatyana Milanova
Last edited Oct 6, 2023
Created on Oct 6, 2023

This example displays a world map rendered in an SVG using D3.js v5. It projects country boundaries with the Natural Earth projection via `d3.geoNaturalEarth1` and draws them through `d3.geoPath`. The map’s ocean is a distinct blue sphere path, while countries appear as light green shapes with subtle black strokes. Geographic data comes from the world-atlas TopoJSON file, converted to GeoJSON using `feature` from the Topojson library.

AI-generated description
MIT Licensed

Similar vizzes