Input test
This example uses an HTML range input slider to interactively rotate two text labels in an SVG scene. Dragging the slider changes the angle value, which is applied to rotate the "d3.js" and "d3noob.org" texts in opposite directions using `d3.select` and the `.on("input")` event. The SVG elements are updated by setting their `transform` attributes with the rotation angle, while the input’s value and label are synchronized through `d3.select` and `.property()`. The visualization demonstrates basic event handling and attribute binding with d3.js v6.
AI-generated descriptionThis is a demonstration of the use of the html 'range' input to rotate two text elements using d3.js v6.
This graph is part of the code samples for the update to the book D3 Tips and Tricks to version 6 of d3.js.