1👍
Have you tried putting onChange event listeners to each input and then targeting the value of the input?
<input id='user-input' onchange='checkInput()' />
checkInput = () => {
let input = document.getElementById('user-input').value;
updateChart(input);
}
I feel like something along these lines will work. Look into the event listeners that monitor user input.
Source:stackexchange.com