d3-selection
Selections allow powerful data-driven transformation of the document object model (DOM): set attributes, styles, properties, HTML or text content, and more. Using the data join’s enter and exit selections, you can also add or remove elements to correspond to data.
See one of:
- Selecting elements - querying for DOM elements.
- Modifying elements - modifying attributes of selected elements.
- Joining data - joining data to selected elements for visualization.
- Handling events - declaring event listeners for interaction.
- Control flow - iterating over selected elements.
- Local variables - attaching state to elements.
- Namespaces - dealing with XML namespaces.
For more, see the d3-selection collection on Observable.