I am trying to auto update a chart on input change. I have 3 elements : an input field (k), an array of 2 columns (x and sin(kx)) and a chart (plotting sin(kx)). I want the array and the charts to auto update on k change. No buttons to click, no reload, just an auto update on change.
Is it possible ? I have been looking all week for this to no avail.
https://codesandbox.io/s/youthful-butterfly-2e7qj?file=/src/App.js
Thank you :)
Edit : Sandbox :)