Use a 'Number' Input with D3.js

Learn how to use "number" inputs to adjust properties of your elements using a text example.

Change one element with an input

There are obviously different input types that can be implemented. The following example still rotates our text, but it uses a number type of input to do it:

Get hands-on with 1400+ tech skills courses.