Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Select/Copy Plotly Hovertext

Tags:

plotly

Is there a way to lock hovertext in place when I click a datapoint? I would like to be able to click and HTML hyperlink in the text, or copy a key from the text into another system.

like image 394
Spencer Connaughton Avatar asked Dec 10 '25 02:12

Spencer Connaughton


1 Answers

I don't think there is a plotly native way to do so. But if you use jupyter notebooks, you can get the text using inspect mode.

  1. open inspect mode (in chrome, right click + inspect).
  2. click on your point of interest in plot
  3. cmd+f or ctrl+f to search in HTML code.
  4. search for hovertext

You will find the text there.

like image 184
Noora Avatar answered Dec 14 '25 10:12

Noora



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!