The d3-selection module is a core library in any D3 application. It's hard to find a D3 application that doesn't use most of its methods, which form the vocabulary of a Domain-Specific Language (DSL) that chains together operations to select, bind, and update data, creating expressions that run as data-driven streams, dynamically transforming Document Object Model (DOM) components. One of the main goals of this chapter is to introduce you to the methods of this module, demonstrating how to use them for selections, updates, joins, and DOM manipulation.
This chapter will also cover the data-binding strategies used by D3, most of which are based on the general update pattern, which is a fundamental paradigm in D3. It was briefly introduced in the previous chapter, but it's important that you understand it very well, since it's used in practically...