Lets make a map with D3.js
✓ Published0🌍 Public
This example shows a world map rendered as an SVG using D3.js v5 and TopoJSON. It loads world country boundaries from the world-atlas package and converts the TopoJSON to GeoJSON with the `feature` function, then draws the map with `d3.geoPath`. The visualization is minimal, with a 960-by-500 viewport and hidden page margins, and demonstrates the basic pipeline of fetching geographic data and projecting it onto the screen.
AI-generated descriptionmap
https://www.npmjs.com/package/world-atlas
topojson map data: https://unpkg.com/world-atlas@1.1.4/world/110m.json
MIT Licensed