Skip to main content
100%

Circles on the Map

✓ Published1🌍 Public
Pprincit
Last edited Mar 30, 2020
Created on Mar 30, 2020
Forked from Choropleth Map

This example displays a world map with countries colored according to their economic classification, using a categorical color scale with a legend rendered as circles. It loads world geometry from TopoJSON and metadata from TSV files, then projects the map with `d3.geoNaturalEarth1` and renders it as SVG paths via `d3.geoPath`. A `d3.zoom` behavior enables panning and zooming, while the color legend is built with a custom function that updates scales and ticks. The visualization uses `d3.scaleOrdinal` with the `schemeSpectral` palette and supports hover highlighting through CSS.

AI-generated description
MIT Licensed

Similar vizzes