-
Book Overview & Buying
-
Table Of Contents
Learn D3.js - Second Edition
By :
In this chapter, we covered several topics related to animations and transitions in D3, including setting timers for timeouts and animations, applying transitions to any selection, controlling life cycle events, handling interruptions, pausing and resuming a transition, configuring custom tweens for styles, attributes, and text, and controlling and synchronizing multiple transitions.
Larger examples were explored, showing how to apply crossfading effects, animate a line chart changing dash-array attributes, and combine D3 transitions with native features from SVG, CSS, and Canvas to implement animations that aren’t easy to create using just JavaScript.
Finally, we closed this chapter with a complete step-by-step tutorial that used many features explored in this chapter and in previous chapters to create an animated bar chart race. In the next chapter, we will explore events in greater detail, learning how to dispatch and handle them and configure drag, brush, and...