Skip to main content
100%

practice16-make a map

✓ Published1🌍 Public
DDi Cui
Last edited May 29, 2023
Created on May 28, 2023

This practice builds a world map with D3.js using the Natural Earth projection via `geoNaturalEarth1` and `geoPath`, rendering country shapes as SVG paths colored by economic classification. It loads TopoJSON and TSV data from the world-atlas package, merges them with `loadAndProcessData`, and applies a sequential `scaleOrdinal` with `schemeSpectral` to map categories. A color legend is generated with `colorLegend`, and zoom interaction is enabled through `d3.zoom`.

AI-generated description

Demonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.

MIT Licensed

Similar vizzes