Lecture 6: d3 joins and scales

In this lecture we will see two important parts of d3. The first part is central to how d3 works: it’s the notion of a join. In fact, we already used joins in the last lecture, but today we will spend a long time making sure we understand what is going on with those selectAll().data().enter().append() calls.

The second part is a set of helper libraries to make your function accessors cleaner and more modular. These are D3 scales. They are used extensively inside d3, and so you need to understand how they work, but they are also tremendously convenient to create data visualizations.

D3 joins

Reading Material

Basics:

In-depth (optional, but recommended read):

D3 scales

Reading material