Skip to main content
100%

Let's make a map with D3.js!

✓ Published1🌍 Public
NNita
Last edited Nov 24, 2020
Created on Nov 24, 2020

This example visualizes world map countries using a natural Earth projection onto an SVG canvas. Each country appears as a light green path with subtle black borders, set against a dark blue background. Built with D3 v5, the code uses d3.geoNaturalEarth1 for projection and d3.geoPath for rendering geographic features. TopoJSON converts the world-110m dataset into GeoJSON features, which are then appended as SVG paths. The data comes from the world-map package hosted on unpkg.

AI-generated description
MIT Licensed

Similar vizzes