Input test
An interactive range slider controls the rotation of two SVG text elements. Moving the slider changes the angle of the "d3.js" label in one direction while rotating the "d3noob.org" label in the opposite direction, with the current angle value displayed beside the slider. The example, built with D3.js v7, uses the `select` and `on` methods to attach an event listener for the `input` event, and `attr` to update the `transform` attributes of both text elements. The data is hardcoded, with the SVG canvas sized at 600 by 300 pixels.
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.
forked from <a href='http://bl.ocks.org/d3noob/'>d3noob</a>'s block: <a href='http://bl.ocks.org/d3noob/243271eb4aef4e0f3fc9c0668edac19a'>Input acting on two elements in v7</a>