O'Reilly logo

Visual Storytelling with D3: An Introduction to Data Visualization in JavaScript™ by Ritchie S. King

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required