@redchilly2095,
Please take a look at this JSFiddle for an example on rendering chart with data from a HTML form. Also please refer this documentation page for step-by-step tutorial on rendering chart with data from user input.
—
Vishwas R
Team CanvasJS