Skip to main content
100%

Let's make a map with D.js

✓ Published0🌍 Public
Rrohit181099
Last edited Jan 8, 2020
Created on Jan 8, 2020
Forked from Untitled

This example shows a basic world map rendered as light green SVG paths with black borders, using a Mercator projection. It loads world country boundaries from the world-atlas TopoJSON dataset and converts them to GeoJSON with the topojson `feature` method. The map is drawn using d3.geoPath and d3.geoMercator, with each country appended as an SVG path element. A hover effect defined in CSS changes the fill color to red, though no interaction logic is implemented in the JavaScript.

AI-generated description
MIT Licensed

Similar vizzes