Skip to main content
100%

Let's make a map with D3.js

✓ Published0🌍 Public
KKrishu
Last edited Aug 17, 2020
Created on Aug 17, 2020

This example shows a world map rendered as SVG paths, with countries filled in navy blue and outlined with light green strokes. The map uses the Mercator projection via `d3.geoMercator` and draws features with `d3.geoPath`. Geographic data comes from the World Atlas TopoJSON file, which is loaded with `d3.json` and converted to GeoJSON using `topojson.feature`. The styling is applied through CSS on the `path` elements, and the visualization updates once the data is fetched asynchronously.

AI-generated description
MIT Licensed

Similar vizzes