plotly / plotly.py

The interactive graphing library for Python :sparkles: This project now includes Plotly Express!
https://plotly.com/python/
MIT License
16.11k stars 2.54k forks source link

Hover Label Flicker when it contains a link #911

Closed sim-ware closed 6 years ago

sim-ware commented 6 years ago

Hi Plotly Community!

I’m having a couple of issues using the Python API for Plotly. Basically I have a Bar Chart, and some information I want to present about it in Hover Labels. However, when one of these pieces of information is presented as a hyperlink, the label itself starts to flicker when moused over. I’ve attached a gif for reference. Do you, the community, have any suggestions? hoverflicker

cldougl commented 6 years ago

Hi there, We currently don't recommend or support adding hyperlinks to hovertext. You can follow this issue: https://github.com/plotly/plotly.js/issues/998 in our core graphing library plotly.js for updates on the feature. Thanks!

sim-ware commented 6 years ago

Hi cldougl, Thanks for your quick help! Will keep an eye peeled for updates on the feature, in the future. In the meantime we'll think about working round this in the short-term. Thanks again Plotly!

newuser357 commented 5 years ago

Has there been an update to the solution?

pkstacey commented 3 years ago

There's a similar attempt here: https://chart-studio.plotly.com/~chris/2540/hover-over-the-points-to-see-the-link/#/code

I'm trying something similar to you, but neither mailto nor javascript protocols seem to be supported within the 'text' property of a dash/plotly tooltip. Any luck?