-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Images in hover tags #1323
Comments
I have the same requirement in a Plotly 3D scatterplot I'm working on in R, using plotly/htmlwidgets. Ideally, I'd like to be able to have an image attached directly to the hover box, for quick preview before opening a larger, external version for more in-depth inspection. Currently, I have images opening in separate windows by "plotly_click" on individual data points. |
Community question about this here: #1323 |
Community question (R): #9223 If any companies are able to fund this feature, please reach out. |
Community question in https://community.plotly.com/t/how-to-create-customised-hovers-in-plotly/36815 |
Mentioned in the forum https://community.plotly.com/t/graph-hover-feature/40421/2. |
For visitors who are discovering this issue for the particular use case of displaying a molecular structure on hover, they may find these Dash molecule renderers useful in the meantime: 2d - https://dash.plotly.com/dash-bio/molecule2dviewer |
Four years and still open. :'-( I love the text annotation hover, & figured there's GOTTA be image annotation hover in a slick pro package like Plotly! ;-) Sadly I don't have molecular diagrams, just regular images. EDIT: Looks like Bokeh can do something along these lines -- even in Colab when used in concert with the nice package for Colab called |
Someday I will be able to put an image or picture into a plotly chart's hoverover. It will be a great day. Today though, I am sad to see no progress thus far :*(. |
BUMP! That would be a great addition to my time-series analysis. Currently it is a pain to have several plots in parallel to inspect what is happening inside my simple px.line plot. But I know this is probably no trivial task at all, if it was, it would certainly be fixed already. Regardless of that, thanks for the great work you guys are doing behind the scenes in plotly (-: |
Hi, I needed the same, so I wrote a simple function to do it and posted in to this gist: Example usage (assuming your images are stored locally) :
|
@raphaeljolivet This is great. https://github.com/drscotthawley/mrspuff/blob/master/mrspuff/scrape.py#L133 (!pip install mrspuff) |
Images on hover is now finally available. Thank you everyone for your patience while we got this right and up to Plotly standards. Huge thanks to @rreusser for getting the ball rolling. Docs: Jupyter notebooks example 1: Jupyter notebooks example 2: Screenshots! If you like this feature, please give it a retweet here to help get the word out: |
@jackparmer This is great! Is it only available via Dash, or also via Graph Objects? |
Only Dash
…
On Oct 4, 2021, at 2:04 PM, Scott H. Hawley ***@***.***> wrote:
@jackparmer This is great! Is it only available via Dash, or also via Graph Objects?
( e.g. https://plotly.com/python/graph-objects/tooltip 404's)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Quick question about exporting this as an HTML - put simply: I haven't figured out how to do this. I can export the app using the tips from the plotly dash docs - and clicking the download button I create, but the resulting figure doesn't contain any of the hover information when I do. I understand that this may be due to the way we update the app, but I was wondering if there was an idea of how to bypass this? |
Also interested in figuring out how to export the interactive plot to HTML. as @Jmegan042 mentioned, the exported figures do not have any hover information. |
Thank you for the examples that show figures on hovering over. I am creating a sunburst plot and would like to show png figures when hovering over a sector of the plot. I was creating the following code already but when i hover over i do get a super long string to be displayed rather than my png figure. The code i have so far is the following: `def create_scr_sunburst_figure_hierarchy(sunburst_data, which):
if name == 'main':
When i hover over one of the sectors i do get a long string not a figure. ALthough when i save the information |
In case anyone gets an error, here's how you fix it: Install these versions: !pip install --q dash==2.18.0 jupyter-dash==0.4.2; and for the MNIST example, do this line replacement
|
I have links to the PNG and SVG molecular structure diagrams for each of the points in this 3d scatter plot (each point represents a molecule):
It would be awesome if images could be configured to show up in hover text.
2 screenshots of this feature in Spotfire for illustration:
The text was updated successfully, but these errors were encountered: