Fork of Chloropeth Map
✓ Published0🌍 Public
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 descriptionMIT Licensed