Selection
This example shows a linked choropleth map and scatter plot of country data, with a color scale mapping urbanization rates from green to grey and a scatter plot encoding life expectancy, GDP per capita, and population using position, color, and radius. The visualization supports interactivity by letting users select data points, which updates the map's color scale and the scatter plot's axes. It uses d3.geoEqualEarth for the map projection, d3.geoPath to render country shapes, and d3.scaleLinear for color, position, and size scales. Hovering over points triggers a tooltip via CSS transitions.