🌍 Public
Viewing a saved revision (read-only)
5944bf57219c40cb8b84c5d5a5fc3362
Let's make a map with D3.js!
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