Skip to main content
100%

Let's make a map with D3.js!

✓ Published1🌍 Public
Cchaimmaeee
Last edited Nov 26, 2020
Created on Nov 26, 2020

This example shows a simple world map rendered in an SVG element using the Natural Earth projection. It loads geographic data from a remote JSON file and draws countries as light green paths with subtle black strokes. The code uses D3 v5’s `geoNaturalEarth1`, `geoPath`, and `json`, along with TopoJSON’s `feature` to extract the geographic features. The map is displayed in a full-viewport layout with no interactivity or additional styling.

AI-generated description
MIT Licensed

Similar vizzes