Skip to main content
100%

World map with D3.js!

✓ Published0🌍 Public
Kkaviya-ds
Last edited Aug 13, 2020
Created on Aug 13, 2020

This example displays a world map using D3.js v5 and TopoJSON, with countries rendered as light green paths with subtle black borders on a blue background. It loads GeoJSON data from the world-atlas package via `d3.json`, converts it to features with TopoJSON’s `feature` function, and projects it using `d3.geoEquirectangular` and `d3.geoPath`. The SVG paths are generated and appended to the canvas, creating a simple, interactive-free geographic visualization.

AI-generated description
MIT Licensed

Similar vizzes