Skip to main content
100%

CSCE-5320: D3 World map

✓ Published0🌍 Public
NNaveenParitala
Last edited Apr 5, 2022
Created on Apr 5, 2022
Forked from D3 map

This visualization displays a world map using the Natural Earth projection, with individual countries rendered as SVG paths that highlight green on hover. The map loads geographic data from a TopoJSON file containing 110m-resolution country boundaries, which is converted to GeoJSON features using the topojson library’s `feature` function. The code uses D3 v5 APIs including `d3.geoPath` for path generation, `d3.geoNaturalEarth1` for the projection, and `d3.json` for asynchronous data loading.

AI-generated description

Creating a map with data in d3

This example will show how to load data into d3 to create a worldmap

I've based this off of Curran's map example

MIT Licensed

Similar vizzes