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

7. Loading and Filtering External Data

In this chapter, we’ll cover how to load data from external data files. A lot of the data that you’ll find on the web comes in one of a number of standard formats, and it’s often way more convenient to use those files directly than it is to hard code the data into your script. By the end of this chapter, you will have made an age distribution bar chart where you can change the year on display simply by changing the value of single variable in your code.

Building a Graphic that Uses all of the Population Distribution Data

Let’s start this chapter with a goal.

Throughout this entire book, we’ve been working towards an interactive bar chart in D3 that displays the age distribution of the world’s population, ...

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