d4_selection
Transform the DOM by selecting elements and joining to data.
Documentation
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.
Libraries
- d4_selection
- Transform the DOM by selecting elements and joining to data.