🌍 Public
Viewing a saved revision (read-only)
bdfc0f89b9694c07adc6a3c96e64c992
Fork of Choropleth Map
A world map displays countries colored by their economy category using an ordinal color scale. The visualization loads geographic data from the World Atlas TopoJSON and TSV files, then renders each country as an SVG path using `d3.geoPath` with a natural Earth projection. Users can zoom and pan via the `zoom` event transform, while a color legend created with custom SVG shapes shows the category-to-color mapping. Hovering over any country highlights it in red and reveals its name and economy class in a tooltip.
AI-generated description<!-- <iframe width="560" height="315" src="https://www.youtube.com/embed/OoZ0LWD9KUs?rel=0" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe> -->