🌍 Public
Viewing a saved revision (read-only)
99550b0d19714989b38660953187c7ca
Fork of Let's make a map with D3.js!
This example demonstrates how to load and render world country boundaries as SVG paths. It fetches GeoJSON data from the world-atlas TopoJSON dataset via `d3.json` and converts it using `topojson.feature`. The visualization applies `d3.geoMercator` and `d3.geoPath` to project the geographic coordinates into a 960 by 500 pixel SVG canvas, though the rendering function is only partially implemented, leaving the map unpublished until the path data is appended. The code imports `select`, `json`, `geoPath`, and `geoMercator` from D3 v5.
AI-generated description