Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Choropleth Map

Public visualization

Viewing a saved revision (read-only)

1ccc25f334b448be84899e45c4063950

Fork of Choropleth Map

0 stars0🌍 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