Vectrosity Vector2 Plot real time(moving) graph

Hi, I’ve plot a waveform graph using Vector2 in Vectrosity.

And I have a array called linePoints which store the Vector2 points and I used graphLine.draw() to draw the line every second.

However, how can I achieve the visualization of the graph moving and shifting every time a new sensor data comes in.

PS: a method (updateDegreePerSecond is called every second)

Any help will be appreciated.