8. Making Charts Interactive and Animated

In this chapter, we will cover the update and exit phases of the data-join. I’ll explain them first on a conceptual level, using the fanciful example of Frank’s tabloid cover data. Then, we’ll learn how to apply these concepts to make the age distribution bar chart interactive.

Data-Joins: Update and Exit

In Chapter 5, we covered the enter phase of the data-join. In this chapter, we’re going to cover both update and exit.

Let’s go back to that tabloid cover data set you got from that quirky buddy of yours, Frank. Now might be a good time to take a look back at Chapter 5 and review the first three months of Frank’s data and what we’ve done with it so far. Here, we’re going to pick up where we left off ...

Get Visual Storytelling with D3: An Introduction to Data Visualization in JavaScript™ now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.