This question is specific to the opensource GraphView library. (https://github.com/jjoe64/GraphView)
Have someone used it to add marker in it?
I want to create a realtime ECG graph with it. And need to create a vertical line when user press a button. I like the GraphView library as its simple and support realtime continuous stream of data.
I have solved the issue, here is the trick.
add two points (x, min_y_value) and (x, max_y_value) … where x is the horizontal position where you want to add marker.
obviously it include some handling as line is continuous graph.. when I was using continuous graph.. I was running that marker line on top of my graph i.e (x, max_y_value) and when ever i need to draw marker, I pull it down like (x, min_y_value) then pull back up in straight line with same x value (x, max_y_value).. obviously there will be a visible line on top of graph that you can hide by some overlay.