Skip to content
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

Tooltip #282

Merged
merged 4 commits into from
Oct 16, 2017
Merged

Tooltip #282

merged 4 commits into from
Oct 16, 2017

Conversation

jordansread
Copy link

Fixes #273
Now will PR on example viz to add this functionality

@coveralls
Copy link

Coverage Status

Coverage remained the same at 72.925% when pulling c226fcf on jread-usgs:tooltip into 35bcf78 on USGS-VIZLAB:master.

@jordansread jordansread mentioned this pull request Oct 15, 2017
Copy link
Member

@aappling-usgs aappling-usgs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool! looks like this does it. one comment and possible change, so i'll wait to hear back from you before merging even though i'm approving now


// remove all children from any tooltip group:
d3.selectAll("#tooltip-group").selectAll("*").remove();
// does the above work to clear out multiple tooltips from multiple svgs?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think it does - i commented out line 7 in developer tools, created a bunch of tooltips on the 2 svgs, and then called this line before and after calling d3.selectAll("#tooltip-group").selectAll("*"). all of the tooltips in both groups disappeared after the remove() call. are you confident now, too, and if so how about removing this line?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, confident - how about I remove it in #284 ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@jordansread jordansread merged commit e0a3298 into USGS-VIZLAB:master Oct 16, 2017
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

Successfully merging this pull request may close these issues.

None yet

3 participants