Skip to main content
100%

Fork of Let's make a map with D3.js!

✓ Published0🌍 Public
Ddanish-nix
Last edited May 15, 2021
Created on May 15, 2021

This example shows a world map with countries rendered as light green shapes against a blue sphere, using geographic data from the World Atlas TopoJSON file. The code loads the topojson data via `d3.json`, converts it to GeoJSON with `topojson.feature`, and projects it onto an SVG using `d3.geoMercator` and `d3.geoPath`. Though country borders are styled in CSS, the map is still static; the JavaScript only logs the parsed features to the console.

AI-generated description
MIT Licensed

Similar vizzes