Visualization of WorldMap Based on Categories
✓ Published0🌍 Public
This example visualizes world countries on a natural Earth projection, colored by economic category from the World Atlas dataset. The map supports zoom and pan, with hover effects that highlight individual countries. It uses D3 v5 for SVG rendering, combining `d3.geoPath` for map geometry, `d3.geoNaturalEarth1` for projection, and `d3.zoom` for interaction. TopoJSON converts the country boundaries, while TSV metadata (shared via `loadAndProcessData`) enriches each feature with names and economy values, which drive the ordinal blue color scale.
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