Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Circles on Map

Public visualization

Viewing a saved revision (read-only)

b47438ab260c4639b062366d936cdcd8

Circles on Map

0 stars0🌍 Public
Mmaxthamt
Last edited Feb 11, 2022
Created on Feb 11, 2022
Forked from Choropleth Map

This example displays a world map colored by each country's economy classification, with a color legend showing the categorical scale. The visualization uses d3.geoNaturalEarth1 projection and d3.geoPath to render the map from TopoJSON data loaded via topojson, while d3.scaleOrdinal with schemeSpectral assigns colors to economic categories. The map supports zooming through d3.zoom, and hovering highlights individual countries in red. A custom colorLegend component renders the legend as SVG circles with text labels, and the sphere background is filled with blue.

AI-generated description