D3: Using each() to specify two transitions in sequence
Clicking the paragraph triggers a chained animation in a D3 v4 scatterplot of 50 random data points. The example demonstrates `transition.each()` to apply two sequential transitions: first, circles grow in radius and change to semi-transparent steelblue over one second, then they shrink back and regain full opacity. Axes rescale simultaneously using `d3.axisBottom` and `d3.axisLeft` with updated linear scales. This SVG-based visualization shows how to coordinate multi-stage updates on a single selection.
AI-generated descriptionBuilt with blockbuilder.org
This is an example copied from Interactive Data Visualization for the web.
I updated it with d3.v4.
forked from <a href='http://bl.ocks.org/EmbraceLife/'>EmbraceLife</a>'s block: <a href='http://bl.ocks.org/EmbraceLife/13264c0e6565ceee0c6980557981e232'>13.click-delay-transition</a>
forked from <a href='http://bl.ocks.org/EmbraceLife/'>EmbraceLife</a>'s block: <a href='http://bl.ocks.org/EmbraceLife/7de2e07c4d3f31acb86a9947ef60737b'>15.x-y-axis transition</a>