Skip to main content
100%

Let's make a map with D3.js!

✓ Published1🌍 Public
DDi Zhen
Last edited Jun 23, 2019
Created on Jun 22, 2019

This example shows a world map rendered as an SVG using D3.js, with countries filled in turquoise and the ocean depicted as a blue sphere. It uses `d3.geoNaturalEarth1` for the projection, `d3.geoPath` to generate paths, and TopoJSON’s `feature` method to convert country boundaries from the world-atlas 110m dataset. The code appends a sphere path and then country paths, with styling from CSS for fill and stroke.

AI-generated description
MIT Licensed

Similar vizzes