Skip to main content
100%

Let's make a map

✓ Published0🌍 Public
JJanet Chen
Last edited Feb 6, 2020
Created on Feb 6, 2020

This example shows a world map rendered as SVG paths, with each country outlined using a Mercator projection. The code loads a GeoJSON-like dataset from the world-atlas package and uses the `topojson` library's `feature` function to extract country features. It then applies `d3.geoMercator` for the projection and `d3.geoPath` to generate the path data for each country, appending them to the SVG canvas.

AI-generated description
MIT Licensed

Similar vizzes