Skip to main content
100%

Choropleth Map

✓ Published0🌍 Public
SSarahKiyani
Last edited Jun 13, 2020
Created on Jun 13, 2020
Forked from Choropleth Map

This choropleth map colors countries by their economy classification using an ordinal color scale derived from d3.scaleOrdinal and d3.schemeSpectral. It renders world geography with d3.geoPath and a Natural Earth projection, with zoom and pan via d3.zoom. A color legend built from d3.zoom and custom SVG circles and text displays the categorical levels. The data comes from a GitHub-hosted CSV joined to TopoJSON world atlas geometries using topojson.feature. Hovering highlights individual countries with a red fill.

AI-generated description
MIT Licensed

Similar vizzes