Skip to content

Click annotations stay when trace is hidden, and can't be removed without restoring trace. #664

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

Closed
abalter opened this issue Jun 20, 2016 · 3 comments

Comments

@abalter
Copy link

abalter commented Jun 20, 2016

You can see the effect in these examples:

https://plot.ly/javascript/text-and-annotations/

It makes sense that when you hide a trace, the annotations should hide as well. A prime example is one I'm doing right now where my popup click annotations cover a trace behind it. I should be able to hide the trace with the annotations briefly to look at the data behind, and then restore the trace with the pickets still there.

@etpinard
Copy link
Contributor

Thanks for the feedback.

I agree, in this particular example the legend should toggle both traces and annotations. In more technical terms, each annotation is linked to a trace. Unfortunately, there is not the case in general and exposing an API to link components to traces isn't in our short-term plans.

In the meantime, here's a hacky solution: http://codepen.io/etpinard/pen/ZWdjNy

@etpinard
Copy link
Contributor

related to #65

@etpinard etpinard reopened this Jun 20, 2016
@abalter
Copy link
Author

abalter commented Jun 20, 2016

Hmmm. Trying to use this for professional presentations. I think a better hacky solution would be to capture the hide event, store the annotation data somewhere, then capture the show event and restore it.

Say, I think I saw somewhere that you are collecting feedback for 2.0. Can you direct me to that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants