Example of user input using JSXgraph.

Click on the canvas to add a point. Click on a point and drag to move the point.