Moving component dynamicly

How can I make the component moved automatically or other ways to achieve the dynamic effect like this:


As long as i provide the coordinates ,it keeps drawing lines which looks like the screen is moving to left.

Are you asking how to move the component or how to draw its contents so that they scroll as new data appears? Different things…

Yes

I had found some functions like: transform(), AnimatedComponent(), and so on, but not for sure how to use them or use them together.
I would appreciate it if you can give me some advices.