choropleth ... map
✓ Published1🌍 Public
A choropleth map of world countries colored by economy type, using a spectral color scale with an interactive legend. The map displays country names and economy values on hover, with zoom and pan enabled via d3.zoom. Built with d3.geoNaturalEarth1 projection and d3.geoPath, it loads TopoJSON and TSV data from world-atlas, renders as SVG, and uses d3.scaleOrdinal to map values to colors.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed