I figured it out ! I tried using Outline Box but it didn't lead me to anything. So what I did is:
_ Remove the If statement from the Slot ( which was just for demonstration purposes ).
_ Add the InvalidateViewState(); method after adding a new Coordinate (to call the UpdateViewState method) .
_ Add this line of code in the UpdateViewState method:
Graph.CoordOrigin = point (Graph.Bounds.w - (Variable1 * Graph.PixelPerUnit.x), Graph.Bounds.h -127);