What is the feasibility of this UI feature (correcting incorrect graph lines)?

I will be digitizing(scanning) ICU Graphs i.e over which patient vitals will be plotted(eg. heart rate wrt time) using a machine learning model. However the lines may need to be ‘nudged’ up and down sometimes by a person (a human-in-the-loop) to correct them.

The approach will be similar to how we move the lines to crop an image in camscanner i.e user only move the vertices.

How can we go about implementing the UI(say in a JS framework like Angular/React) to allow the user to move these lines up and down and correct them?

Hello
I also have the same issue with the machine learning model. It would be very helpful if anyone will share the solution.