I am making a real-time time series plot of a lot of variables ( ~200). Initially I set visible to false for all the lines. I have LinearAxis created also for each variable. Again these are initially hidden. The user can make the lines and axes visible through a JS callback. This all works well. The issue is that it is slow. There might be other issues that make it slow but one thing that is definitely slow is p.extra_y_ranges. I am updating all of them each time new data comes in. If I comment out the line that does that, things speed up a lot.
In writing this, I guess I could just update the ones that are visible.
I am surprised this takes so long but I don’t really know all that it needs to do.
Or am I missing something else? Any advice?
Thanks in advance.
The issue is that as new data comes in, I update

