-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
annotation hover text #1573
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
annotation hover text #1573
Changes from 1 commit
58966ed
384353a
4ab7986
919580e
da1e9d7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -105,7 +105,7 @@ function drawOne(gd, index) { | |
.attr('data-index', String(index)); | ||
|
||
var annTextGroupInner = annTextGroup.append('g') | ||
.style('pointer-events', 'all') | ||
.style('pointer-events', options.captureevents ? 'all' : null) | ||
.call(setCursor, 'default') | ||
.on('click', function() { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Anyway, I only attached click and hover to the text box, not to the arrows, and both are included in the new test. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
That's sounds like the desired behavior to me. |
||
gd._dragging = false; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe
hoverText.length > 0
, as!![] \\ => true
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For annotations,
hovertext
is a string, I think this is OK. But you're absolutely right when this moves into traces and can be an array.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh right. My bad.