D3.selectAll(...).transition() Explained
This example illustrates that `d3.selectAll(...).transition()` creates multiple independent transitions, each running on its own schedule. It uses D3 v3.5.5 to animate circles and visualizes the lifecycle of scheduled, starting, running, ending, and stopped transitions with graphical markers. The code demonstrates named transitions to run multiple concurrent animations on the same elements and uses `transition().delay()` and `transition().duration()` to control timing. User interaction via radio buttons drives the staged explanation.
AI-generated descriptionI hope this sequel will help you to understand how a d3-transition works, specifically when it is applied on multiple elements.
The main objective of this sequel is to illustrate that:
- selectAll(...).transition() defines several transitions
- each transition runs independantly
This sequel also illustrates:
- the use of transition().delay(...), transition().duration()
- the lifecycle of a transition (scheduled/starting/running/ending/stopped)
This sequel uses D3 v3.5.5.
If you look at the code, you will see that:
- I use named transition in order to run several transition on the same element
- I stop running transitions by overriding the adequate named transitions