Input test
✓ Published0🌍 Public
Dd3noob
Last edited Nov 30, 2019
Created on Apr 14, 2014
This example demonstrates how an HTML range input can control multiple SVG elements simultaneously. Dragging the slider rotates two text labels, "d3.js" and "d3noob.org", in opposite directions. The code uses D3.js version 3.5.17 to append SVG text elements and listens to the input event on the range control, updating each text’s transform attribute with a new rotation angle. The slider value is displayed live in a label.
AI-generated descriptionThis is an example of implimenting an HTML input using a <range> input tag and using that to adjust multiple d3.js svg elements (spinning text!).
It is used as an example and described in the book D3 Tips and Tricks.
mit Licensed