Skip to main content
100%

Let's make a MAP with D3.js!

✓ Published2🌍 Public
Ccledevoute
Last edited Jun 24, 2020
Created on Jun 24, 2020

This example displays a world map rendered as an SVG, with countries filled in light green and the ocean depicted as a sky-blue sphere. It uses D3 v5 and TopoJSON to load world-atlas data at 110m resolution, then applies the `d3.geoNaturalEarth1` projection and `d3.geoPath` to generate country boundaries. The map also draws a background sphere path, and country strokes are semi-transparent black. The code relies on `topojson.feature` to convert TopoJSON topology into GeoJSON features for rendering.

AI-generated description

React Starter code.

MIT Licensed

Similar vizzes