Skip to main content
100%

Let's make a map with D3.js!

✓ Published1🌍 Public
RRubens
Last edited Sep 24, 2018
Created on Sep 18, 2018

This example displays a world map rendered as SVG paths, with countries in light green and the ocean in blue. It uses D3.js v5’s `geoNaturalEarth1` projection and `geoPath` to generate geographic shapes, while the TopoJSON library’s `feature` function converts the world-atlas 110m GeoJSON data into features. A sphere outline and country boundaries are drawn with stroke styling, and the map is projected onto a 960 by 500 canvas.

AI-generated description
MIT Licensed

Similar vizzes