Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cheap Tricks for Interaction

Public visualization

Cheap Tricks for Interaction

0 stars1🌍 Public
LLeoBergqvist
Last edited Feb 21, 2020
Created on Feb 21, 2020

A world map colored by economy type uses D3 v5's geoNaturalEarth1 projection and d3.geoPath to render country boundaries from TopoJSON data. Hovering highlights countries in red via CSS, while a reusable colorLegend function displays a clickable legend with colored circles. The map supports pan and zoom through d3.zoom, with the visualization powered by SVG rendering and a sequential spectral color scale.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed