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

4. Shaping Web Pages with D3 Selections

In this chapter we are going to dive in to D3 (finally!). Specifically, we’re going to cover something called selections. On the most basic level, selections are D3’s way of letting you access a web page so that you can make changes to it — selections give you the keys to the document so you can drive it! Remember, though D3 is an amazing tool for creating data visualizations, it doesn’t have a basic function for generating charts. Instead, it provides a bunch of ways to manipulate the contents of a web page, based on data. But it’s up to you to create the shapes and the lines that you need to make an intelligible data visualization.

Getting Set Up with D3

D3 is a JavaScript library. Physically, what this ...

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