Input test (circle)
A circle's radius is controlled by an HTML range slider, with its current value displayed as text. The example shows a blue, unfilled circle on an SVG canvas that resizes interactively as the slider is dragged. It uses the D3.js v7 library to select the input element and attach a listener to the range's "input" event, updating the circle's `r` attribute and label. The code initializes the radius to 120 and re-renders the SVG circle element through a custom `update` function, demonstrating a simple dynamic data binding between a native form control and vector graphics.
AI-generated descriptionThis is a demonstration of the use of the html 'range' input using d3.js v7.
This graph is part of the code samples for the update to the book D3 Tips and Tricks to version 7 of d3.js.