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 phases.

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 ...

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

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.