Skip to main content
100%

World Map

✓ Published0🌍 Public
BBhavanaGIrni
Last edited Jul 22, 2023
Created on Jul 22, 2023
Forked from HTML Starter

This example renders a natural Earth projection world map as an SVG, using light yellow for the ocean sphere and light blue for landmasses with white stroke outlines. It loads world topology from the world-atlas TopoJSON file via D3’s `json` method, converts it to GeoJSON using TopoJSON’s `feature` function, and draws paths with `d3.geoPath` and `d3.geoNaturalEarth1`. The implementation relies on D3 v5 selections and the topojson client library to visualize country boundaries.

AI-generated description
MIT Licensed

Similar vizzes