🌍 Public
Viewing a saved revision (read-only)
95fe8d013c8844d8af4301b85c677e35
Choropleth Map.js
This choropleth map colors countries by their economy classification using an ordinal color scale with a spectral palette. A hover effect highlights individual countries, and a custom legend displays the color categories. The visualization loads world geometry from TopoJSON and joins it with tabular TSV data, rendered as SVG paths via `d3.geoPath` and a natural Earth projection. Interactive pan and zoom are enabled through `d3.zoom`, while the legend and map styling are built with D3’s selection and data-join methods.
AI-generated description