Chapter 3
Manage On-Screen Objects with Enter-Update-Exit Pattern
Section 4
Grouping Elements for the D3 Advantage
Juggling many elements can be messy. Handling an element and a label separately can be unnecessarily complicated. Connecting elements that are related is a helpful and simple solution, using Group elements. D3 manages grouped elements well with the enter, update, exit pattern. - Update the D3 data join to be connected to group elements - Move the enter, update, exit selections to the groups - Update child elements inside the enter, update & exit selections