Open etpinard opened 7 years ago
We definitely would have use for a hover label that the user can interact with. There is quite a bit of information in our hover labels (5-6 lines of text), and users would often like to copy and paste some text from the hover label, or potentially click a link.
@john-soklaski what do you think the right interaction is for allowing a user to select copy paste what is in a hover tag?
@jackparmer I think persisting the hover label if a user moves the mouse cursor along the arrow to the hoverlabel makes sense (with hovermode: closest
)
@jackparmer I will second this feature request in the python API. Our clients would like to be able to interact with content related to a particular data point so ss far as interaction goes, the text should persist, and a hyperlink placed in the text should be clickable.
+1
+1
@john-soklaski , @maresk , @latorrefabian , @maierbenedikt - you may be interested in discussion here, Annotations that show & hide on clicking data: https://github.com/plotly/plotly.js/issues/1266
And see the implementation of clicktoshow
in #1265 - at some point we do intend to implement a way to generate "sticky" annotations programmatically on clicking a data point but for now, as long as you don't have too much data you can do it the other way around: pre-generate all the annotations you might want and link them to appear on clicking the appropriate data points.
Hello all! Am I missing something fundamental here? Is there a purpose of being able to have hyperlinks in the text if you can't click them?
Am I missing something fundamental here? Is there a purpose of being able to have hyperlinks in the text if you can't click them?
We support text in a lot of different contexts, and in most of the other contexts the links are clickable. So it would require special code to disable link creation within the unclickable contexts, and that extra complexity seemed unnecessary since really, is there a purpose to adding hyperlinks that you can't click? 😉
That makes sense!
what do you think the right interaction is for allowing a user to select copy paste what is in a hover tag?
@jackparmer I think clicking on the marker itself would be ideal to toggle the stickiness of the hover tag.
+1 for utility
+1 for this. This would enable users to dig into the data by linking other related charts. I like the simple solution proposed by @pdanese
It seems as if there may already a solution in community.plot.ly
To me it seems that if you knew which datum was clicked, then you could window.open(datum.uri). It's probably not that easy.. but the fiddle is compelling.
I can't quite read tease it out of the docs what it's actually saying :(
Hello, has this been completed yet? Currently working on a project where I want users to be able to click the annotations and copy them to the clipboard.
I would love to have this feature as well!
looks like this is still open? any updates?
+1
+1
+1 need stickiness
This is not a large project but obviously hasn't found its way to the top of the priority queue for a while. If any company would like to partner with us on this, we'd be interested in discussing! https://plot.ly/products/consulting-and-oem/
(For 3D chart)
I was trying out some complex keyboard bindings (which didn’t work), and accidently I found this .
Just double click on markers (which selects text) , then press ctrl+C.
+1
+1
This would be very useful for data analysis. And unfortunately the hack suggested by @AniWar doesn't seem to work anymore.
This issue has been tagged with NEEDS SPON$OR
A community PR for this feature would certainly be welcome, but our experience is deeper features like this are difficult to complete without the Plotly maintainers leading the effort.
Sponsorship range: $15k-$20k
What Sponsorship includes:
Please include the link to this issue when contacting us to discuss.
In case this is useful for someone else, I worked around this by adding some 'postscript' javascript as part of writing my figure to HTML. https://gist.github.com/keseldude/4c3c2220f0aec13604a1e4836995e37c
This creates a new "info panel" div, whose contents become the hover text when the user clicks on a point matching some condition (in my case, if the hover text matches some regexp). Once the text is in the "info panel", the user can select the text there.
Super useful
Any updates/solutions to this issue?
This would be very useful
+1
+1
+1
Hi - stumbled upon this when looking for a way to follow a URL that's in the hover text. The workaround proposed by @keseldude looks like it could work for me, but I don't understand how to use it. Could anyone please elaborate?
Any update on this?
+1, I am also in need of this feature
+1
+1
+1
+1
+1
+1
+1
+1
+1
Defining what sticky means will be tricky. It probably doesn't apply to every situation. Maybe we could add it as a new
layout.hovermode
e.g.'hovermode: 'sticky'
.So, maybe instead we could define a
linkonclick
attribute e.g.linkonclick: ['https://plot.ly/~empet/101', 'https://plot.ly', /* ... one link per data pt */]
that way clicking on a data pt would open the link instead of hovering on the data pt -> move mouse over link in hover label -> click on it.cc @jackparmer