I’m building off of this example; by that I mean I copied it exactly for my purposes.
My question is this: the graph that I have is representative of a physical structure, and there are over 5000 points. The code works great (takes a second to load, but I don’t really care), but because there are so many, the lines that get generated might travel through other circles, so it can be unclear if a given circle is being called out.
How do I make it so that the circles that get pointed to change to a different color, then change back to their original color when they’re no longer being pointed to? I’m assuming that it needs to be handled in the JScallback, but I’m not a guru with Python and I don’t know any JavaScript.
The example you link uses a CustomJS because it is demonstrating how it is possible to do something more sophisticated than changing appearance in response to a hover event (e.g. manipulate other glyphs or data)
Okay, I’ve played around with that example, but it seems like I’m only able to change the color of the circle over which the cursor is hovering; I want to be able to change the color of that circle AND all of the other circles that now have a line segment between them and the hovered-over circle.
The linked example dates from before graph support existed, and is somewhat contrived. If you have graph data, and use real graph renderers, then you can use node and edge interaction polices to control things like this:
I can supply, but it’ll take me a second to sanitize the data. Alternatively, the code from the URL in the original post works; I just adopted that code for my usage, but the actual appearance of the lines is identical.
Oh, shoot dang, that graph data might be exactly what I’m looking for, lol. I’ve spent the past two days working on this, and I never came across that stuff. Lemme dive into that real quick.
Apologies, I don’t really understand your question, or how that SO topic might relate (the topic only seems to concern turning on axes, and also for matplotlib)
I initially couldn’t find an example where folks were using the “pos” argument, so I couldn’t figure out how to plot points on an XY plane. Then I found the “pos” argument.