Skip to main content
100%

Choropleth Map Zia1

✓ Published3🌍 Public
00718103673
Last edited Apr 14, 2021
Created on Apr 14, 2021
Forked from Choropleth Map

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
MIT Licensed

Similar vizzes