🌍 Public
Viewing a saved revision (read-only)
493527ac6cff404c85c73cb0b0f7b792
Choropleth Map Zia1
This example presents a choropleth map of global economies, coloring each country using a categorical ordinal scale and the spectral color scheme. It displays the map with a natural Earth projection and applies zoom interactions to the SVG. A custom legend visualizes the color categories with circles and labels. The code uses d3.geoPath, d3.geoNaturalEarth1, d3.zoom, and d3.scaleOrdinal, loading TopoJSON and TSV data from the world-atlas package. Hovering a country highlights it in red, and a title tooltip reveals the country name and economy type.
AI-generated description