🌍 Public
Viewing a saved revision (read-only)
aa77441b2dd44b2896219a853e39839e
Let's make a map
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