I am displaying a scatter plot in a high-rate real-time streaming context.
I have to highlight certain “special points” using an arrow starting from the point position and facing down (it’s a requirement of the software I am developing).
I am currently using annotations that allows me to draw arrows. When a new “special point” arrives, I push the new annotation in the layout.annotations array and I use relayout() to display it.
With this approach, each time a new “special point” arrives, I am forced to redraw all the annotations and it takes too much time (since the high rate of the stream that feeds the plot)
My questions are:
- Is there a way to draw only the last pushed annotation without redrawing all the annotations? (something like extendTraces for annotation array)
- If it’s not possibile, Is there a way to draw an arrow without using annotations but, for example, styling an error bar?
- Do you have other suggestions?
Thank you for the response,