Skip to main content
100%

WorldMap Visualization Based on Categories

✓ Published0🌍 Public
Ssrikkanth05
Last edited Jul 16, 2023
Created on Jul 16, 2023
Forked from Hello VizHub

This interactive world map visualizes countries by economic category, using the natural earth projection to render geographic boundaries. The map is drawn as SVG paths from TopoJSON data enriched with TSV metadata, with each country’s fill color assigned via a d3 ordinal color scale using the Blues scheme. Pan and zoom are enabled through d3.zoom, and hover effects highlight individual countries. The code leverages d3.geoNaturalEarth1, d3.geoPath, topojson.feature, and d3.schemeBlues.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes