block by magjac ed5ddb4fc7ad88c272ed55af04526644

Smooth Chained Transitions Despite Long Computational Time at the End of the First Transition

Full Screen

This example shows how to accomodate for a long computational time in the end event callback of the first of two chained transitions. The solution is to add a delay to the second transition that is equal to or larger than the computational time. See the problem in action here.

Timeline:

Open the console if you want to see timestamped events during the transitions.

Note: a bug in d3-timer that is fixed, but at the time of this writing not yet released, requires this example to use a non official d3-timer.min.js.

index.html