Skip to main content
100%

Fork of Choropleth Map

✓ Published0🌍 Public
MMarwan Sulaiman
Last edited Jan 14, 2023
Created on Jan 14, 2023
Forked from Choropleth Map

This example shows a choropleth map of the world, coloring each country according to its economy category using an ordinal color scale. The map renders with SVG paths generated by d3.geoPath and a Natural Earth projection, and it supports zooming and panning through d3.zoom. A custom color legend is built with circles and text labels. Data is loaded from world-atlas TopoJSON and TSV files, processed with topojson.feature, and the color scale uses d3.scaleOrdinal with schemeSpectral.

AI-generated description
MIT Licensed

Similar vizzes