Skip to main content
100%

Let's make a map with D3.js!

✓ Published0🌍 Public
Rrichad97
Last edited Apr 25, 2020
Created on Apr 25, 2020

This example displays a world map rendered as blue SVG paths with white borders, highlighting each country in red on hover. It demonstrates a basic geographic visualization workflow using D3.js, loading country boundaries from the world-atlas TopoJSON dataset and converting them with `d3.geoMercator` projection and `d3.geoPath`. The code uses `topojson.feature` to extract GeoJSON from the TopoJSON file and appends the resulting paths to an SVG canvas, with hover styling handled by CSS.

AI-generated description
MIT Licensed

Similar vizzes