Skip to main content
100%

Untitled

✓ Published0🌍 Public
Vvenkatajayanth03
Last edited Jul 9, 2022
Created on Jul 7, 2022

This example presents a choropleth map of the world, coloring each country according to its economic classification. The visualization uses a natural Earth projection via `d3.geoNaturalEarth1()` and renders SVG paths with `d3.geoPath`. Country boundaries are stroked in black, and hovering turns a country black. The code merges TopoJSON geometry with TSV data, and colors are assigned using `d3.scaleOrdinal` with a reversed `d3.schemeSpectral` palette, where the legend is not shown. Data is sourced from the `world-atlas` package and a custom TopoJSON file.

AI-generated description
MIT Licensed

Similar vizzes