Skip to main content
100%

Let's make a map with D3.js!

✓ Published1🌍 Public
TTsing
Last edited Nov 13, 2019
Created on Nov 12, 2019

This example shows a world map rendered as a static SVG, with countries filled in green and a light blue sphere background. It loads geographic data from the world-atlas TopoJSON file and converts it to GeoJSON using `topojson.feature`. The map uses the `geoNaturalEarth1` projection and draws boundaries with `d3.geoPath`. D3 selections append one SVG path per country, while a dedicated sphere path provides the ocean backdrop.

AI-generated description
MIT Licensed

Similar vizzes