Skip to main content
100%

Let's make a MAP with D3.js!

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

This example visualizes world countries as a natural Earth projection map, with light green landmasses on a sky blue sphere. It loads geographic data from the world-atlas TopoJSON dataset and converts it into GeoJSON features using the `feature` function. The map is rendered with D3’s `geoNaturalEarth1` projection, `geoPath` for path generation, and SVG paths for each country, including a sphere outline. Styling applies via CSS classes for the sphere and country fills, with semi-transparent black country borders.

AI-generated description

React Starter code.

MIT Licensed

Similar vizzes