You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have PlotlyJS.jl running in a Pluto.jl notebook. I have a graph/network plotted where each node represents an image. I'd like to be able to view a preview of each image when I hover over its node.
If there is a way to embed HTML in hover, please point me to it!
As a second option, I thought I might be able to link the hovered node to a subplot that could display the image, but I was unable to access the data of the node. I know that plotly.js fires off events with data on clicks/selects and hovers. I'd like to be able to use the data (in this case an image filename).
Attached is a screenshot of the graph in question, with one node hovered.
After banging my head for a while against the docs of the relevant packages, I thought I might be able to use javascript to access the DOM and pull out the relevant information, but it only works in the console.
Any advice would be appreciated. Am I barking up the wrong tree?
The text was updated successfully, but these errors were encountered:
Not sure what it would take to get this working with Pluto.jl and unfortunately I don't have the time right now to try to get it working. Perhaps other community members can provide support here??
Thanks for your response @sglyon. I've decided to switch over to JS, skipping plotly.js and working directly with D3.js. This has provided the level of control I needed for this project.
I have PlotlyJS.jl running in a Pluto.jl notebook. I have a graph/network plotted where each node represents an image. I'd like to be able to view a preview of each image when I hover over its node.
If there is a way to embed HTML in hover, please point me to it!
As a second option, I thought I might be able to link the hovered node to a subplot that could display the image, but I was unable to access the data of the node. I know that plotly.js fires off events with data on clicks/selects and hovers. I'd like to be able to use the data (in this case an image filename).
Attached is a screenshot of the graph in question, with one node hovered.
After banging my head for a while against the docs of the relevant packages, I thought I might be able to use javascript to access the DOM and pull out the relevant information, but it only works in the console.
Any advice would be appreciated. Am I barking up the wrong tree?
The text was updated successfully, but these errors were encountered: