Skip to main content
100%

gapminder with highlighting

✓ Published0🌍 Public
AAlan McConchie
Last edited Oct 3, 2018
Created on Oct 2, 2018

This example animates a Gapminder-style scatterplot of countries, plotting GDP per capita against life expectancy with circle size representing population and color indicating region. Hovering over a circle highlights it by turning it yellow and enlarging it via a transition, which then reverts on mouseout. Built with D3 v4, it uses `d3.scaleLinear`, `d3.scaleSqrt`, and `d3.scaleOrdinal` to map data to positions, radii, and colors, along with D3’s axis components. The visualization loads data from a CSV file and renders the interactive circles as SVG elements.

AI-generated description

Built with blockbuilder.org

forked from <a href='http://bl.ocks.org/almccon/'>almccon</a>'s block: <a href='http://bl.ocks.org/almccon/b1e8d7030d8235b428142d262bf42b77'>gapminder demo</a>

forked from <a href='http://bl.ocks.org/almccon/'>almccon</a>'s block: <a href='http://bl.ocks.org/almccon/ce995a988bc4f0d7f13cb1236b12a1b9'>gapminder with color</a>

mit Licensed

Similar vizzes