Custom HTML Chart.js With User Input

Hello,
i wanna ask something, can the chart update dynamically with the user input?
and how to do that?

i have a website that returning json format data, that i want to make it into a chart

in wix, that has a text input and a button, and when i press the button
it send the user input into my website and return the json

and use the json data to make it into a chart

There is already an example that does use Chart.js as shown here.
https://www.wix.com/corvid/example/create-a-custom-chart

All the data for the chart is already added in the arrays at the start of your code, so to get it to work with your user inputs, you would need to have those values from the inputs added in as arrays to replace the existing values used.

Thanks…