Skip to main content
100%

Bubble Update Pattern I

✓ Published0🌍 Public
GGerardoFurtado
Last edited Apr 1, 2018
Created on Apr 1, 2018

This example demonstrates the general update pattern for D3 selections applied to a bubble chart layout, showing how entering, updating, and exiting circles and labels are handled as data changes. Using the D3 v4 pack layout, it joins data to circle and text elements, then animates transitions: exiting circles shrink and fade, updating elements smoothly move and resize, and entering circles grow from a tiny radius while text fades in. The code relies on `d3.hierarchy`, `d3.pack`, and `d3.transition`, with data randomized by the jeezy utility. The visualization cycles every 1.5 seconds, repeatedly shuffling the alphabet subset and updating the chart accordingly.

AI-generated description

An attempt to replicate Mike's General Update Pattern, III with a pack layout (bubble chart). The update has four parts: (1) Join, (2) Exit, (3) Update, (4) Enter.

See also: Force Update Pattern, Voronoi Update Pattern II, Voronoi Update Pattern, and Modifying a Force Layout

forked from <a href='http://bl.ocks.org/HarryStevens/'>HarryStevens</a>'s block: <a href='http://bl.ocks.org/HarryStevens/54d01f118bc8d1f2c4ccd98235f33848'>Bubble Update Pattern I</a>

forked from <a href='http://bl.ocks.org/GerardoFurtado/'>GerardoFurtado</a>'s block: <a href='http://bl.ocks.org/GerardoFurtado/207a2e0dd2b306a955421acc79fad0b3'>Bubble Update Pattern I</a>

gpl-3.0 Licensed

Similar vizzes