Skip to main content
100%

Fork of Chloropeth Map

✓ Published0🌍 Public
Llrakla
Last edited Dec 29, 2021
Created on Dec 29, 2021
Forked from Chloropeth Map

A choropleth map colors countries by their economy classification, with a color legend and zoom-and-pan interaction. It uses `d3.geoNaturalEarth1` and `d3.geoPath` to render the world from TopoJSON data loaded via `d3.json` and `d3.tsv`, which joins country names and economy values by ISO codes. The visualization assigns colors via `scaleOrdinal` with `schemeSpectral`, and includes a custom `colorLegend` component. Interactive zoom is handled with `d3.zoom`, while SVG paths for countries are styled with hover effects.

AI-generated description
MIT Licensed

Similar vizzes