Last active
November 19, 2017 17:41
-
-
Save limscoder/b41d2842b88f3f98c88faca18666e20e to your computer and use it in GitHub Desktop.
D3 exit selection
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const exitUsers = d3.select('ul.app-user-list') | |
.selectAll('li.app-user') | |
.data(users) | |
.exit(); | |
// remove stale elements from the document | |
exitUsers.remove(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment