Choropleth
✓ Published2🌍 Public
This choropleth visualizes countries colored by economic classification using an ordinal color scale derived from d3.scaleOrdinal and d3.schemeSpectral. It renders a Natural Earth projection with d3.geoNaturalEarth1 and d3.geoPath, loading world geometry via TopoJSON from the world-atlas package, with country names and economic data matched from a TSV table. A custom color legend, built with D3 selections, displays the sorted categories, and d3.zoom enables panning and zooming of the map.
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