Skip to main content
100%

Let's make a map with D3.js!

✓ Published0🌍 Public
Aankita1mit
Last edited Mar 17, 2020
Created on Mar 15, 2020

This example demonstrates how to create a world map using D3.js v5, displaying country boundaries as light green polygons on a blue sphere. It loads geographic data from the world-atlas TopoJSON dataset and renders it as SVG using `d3.geoPath` with the `geoNaturalEarth1` projection. The code processes the TopoJSON through the `topojson.feature` API and applies a `geoPath` generator to draw each country outline with stroke opacity styling.

AI-generated description
MIT Licensed

Similar vizzes