-
Book Overview & Buying
-
Table Of Contents
Learn D3.js - Second Edition
By :
This chapter covered the main methods of the most important module in the D3 library: d3-selection, which provides a flow-based DSL for selecting DOM elements, binding them to data, and updating their properties after data changes. The methods in this module can be found in any D3 application and have been used since the beginning of this book. This chapter explored them in much more detail, using your browser’s JavaScript console to run simple code snippets that demonstrate how these methods modify the internal properties of selection objects during a selection (a join and an update), and how those changes are reflected in the elements that are part of these selections. This knowledge will be very important when you create more complex data visualizations.
You also learned how to filter selections, configure a data update with a custom key function, control the individual enter, update, and exit steps of a data join, call methods from inside a selection, and some...