Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

choropleth map

Public visualization

Viewing a saved revision (read-only)

0f111eb7f845483f988313d31efc90e3

choropleth map

0 stars1🌍 Public
Aakshayms0
Last edited Nov 4, 2022
Created on Nov 4, 2022
Forked from HTML Starter

A choropleth map colors world countries by their economy classification using a categorical ordinal color scale. Built with D3 v7 and TopoJSON, it renders geographic paths via `d3.geoPath` with a natural Earth projection, while zooming is handled through D3's zoom behavior. A custom legend component displays the color scale with SVG circles and text. Countries highlight red on hover, and the data merges World Atlas TopoJSON with TSV metadata to assign economy values.

AI-generated description