Hi there!

I have a basic question to canvas in QML. Is it possible to update the graph or do I have to redraw the entire graph each time I want to update it?

My plan is to generate a sinus wave while the program is running. New values will be created about every 10 ms and shall be added to the graph. When the graph reached the end of the x-axis I would like to start updating from the beginning, overwriting the existing values. Assuming the x-axis is 400 px long, I could create an array with 400 values. After reaching index 399 I could start at 0 again. But how do I get this efficiently on my canvas? Can I update singe points or should I do that entirely differently?

Thanks for comments and/or suggestions.