Skip to main content
100%

Let's make a map with D3.js!

✓ Published1🌍 Public
Aaxliao
Last edited Jul 20, 2019
Created on Jul 20, 2019

This example shows a world map rendered as SVG paths, with country boundaries drawn from TopoJSON data. The visualization uses D3 v5’s `geoMercator` projection and `geoPath` to convert geographic coordinates into screen paths, while the `topojson.feature` API extracts country geometries from the world-atlas dataset. All countries are appended as individual `path` elements to a 960×500 SVG canvas. The code loads data asynchronously via `d3.json` and relies on the bundled `index.js` to handle the data-binding and path generation.

AI-generated description
MIT Licensed

Similar vizzes