What I would like to create (it doesn't have to be very precise, it's just for entertainment purposes):

What I have:
I have a REST API to a service that let's me query the current BPM of the person wearing the pulse measuring device. So I don't have an Event that indicates when a hearth beat is happening. I would have to calculate this with the given BPM. But that's not the issue.
The Question:
How would you draw the lines and make them disappear behind and from left to right with a reset when it reaches the right corner. I have some experience in C# WPF, that's why I created the REST Querying stuff there. Are there some Libraries for the drawing part? Is there an easy way to do this by hand?
I'm really greatful for any advice, since I can't find that much on a rather specific issue like this on the internet. So thank you!
UPDATE: I got something working using WritableBitmap, but it looks pretty bad. Any idea on how to get a better resolution? I already increased the resolution of the bitmap, but it still looks quite horrible. Is there some sort of Anti-aliasing on this?



This will get you started:
Install WriteableBitmapEx package:
Code:
Code:
Here I simply I erase a 1 pixel wide rectangle ahead the value I'm drawing, in your case, erase a larger rectangle to get the effect you want.
See that you'll need to keep history of previous value and draw a line from it instead to have a solid drawing.
Also, you may want to look at these libraries as well:
https://sourceforge.net/projects/ecgtoolkit-cs/
https://github.com/rdtek/ECGViewer
https://github.com/Refactoring/ECGToolkit