Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Visualization of WorldMap Based on Categories

Public visualization

Visualization of WorldMap Based on Categories

0 stars0๐ŸŒ Public
Aanith462@gmail.com
Last edited Jul 21, 2023
Created on Jul 21, 2023
Forked from Hello VizHub

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 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.

Comments

Sign in to join the discussion.

MIT Licensed