Gooey Exploding Scatterplot
This interactive Gapminder recreation plots life expectancy against fertility rates for countries over time, with a large year label and playable transitions. The “gooey” effect uses SVG filters—`feGaussianBlur`, `feColorMatrix`, and `feBlend`—to make continent groups coalesce or explode into their constituent countries with a paintball-splatter-like blur. The code creates a separate filter definition per continent, allowing individual toggling via the Explode All and Collapse All buttons. Data comes from Gapminder, and the visualization is built with D3 v4 using scales, axes, nesting, and transitions.
AI-generated descriptionBlock-a-Day #10. In this Gapminder recreation, continents can be exploded into their constituent countries with a paintball-splatter-like effect.
Data Sources: Gapminder.
What I Learned: I've wanted to build something with this technique ever since I saw Nadieh Bremer's demonstrations of it. My addition is to create a separate filter definition for each continent, enabling them to be individually transitioned. For more details, check out her original blog post and follow-up.
What I'd Do With More Time: The explosions have to wait until the next year tick. I'd like to be able to explode them immediately, but I'm not aware of a way to do this with d3.transition alone, so it would probably require a custom animation loop.
Block-a-Day
Just what it sounds like. For fifteen days, I will make a D3.js v4 block every single day. Rules:
- Ideas over implementation. Do something novel, don't sweat the details.
- No more than two hours can be spent on coding (give or take).
- Every. Single. Day.
Previously
- Map to Force-Directed Graph
- Brushable Scatterplot/Choropleth
- Treemap Bar Chart
- Triangular Scatterplot
- Choropleth with Animated Stripes
- Collatz Conjecture
- Bouncing Logo
- Rectangular Collision Detection
- Demers Catogram
forked from <a href='http://bl.ocks.org/cmgiven/'>cmgiven</a>'s block: <a href='http://bl.ocks.org/cmgiven/e5dfe0888968ee8c507f5469a4d62b6f'>Gooey Exploding Scatterplot</a>