Skip to main content
100%

Fork of Let's make a map with D3.js!

✓ Published0🌍 Public
Wwakgari
Last edited Aug 11, 2022
Created on Aug 11, 2022

This example displays a natural Earth projection of the world, with countries rendered as light green polygons on a blue sphere. The visualization uses D3.js v5 and the topojson library to convert geographic data from the world-atlas package into SVG paths. The code employs d3.geoPath with d3.geoNaturalEarth1 for the projection, and the topojson feature function to extract country boundaries from the TopoJSON source. A semi-transparent black stroke outlines each country, while the sphere’s fill is set via the CSS class.

AI-generated description
MIT Licensed

Similar vizzes