Skip to main content
100%

Let's make a map with D3.js!

✓ Published1🌍 Public
BBahareh Zarei
Last edited Oct 17, 2018
Created on Oct 17, 2018

This example shows a world map rendered as an SVG using D3.js, with countries filled in light green and oceans in blue. It uses the `geoNaturalEarth1` projection and `geoPath` to draw geographic features, while `topojson.feature` converts TopoJSON country boundaries from the world-atlas dataset. The map’s sphere outline and country paths are appended to the SVG, with styling applied via CSS classes. The code loads geographic data asynchronously using `json` from D3 v5.

AI-generated description
MIT Licensed

Similar vizzes