Last active
November 19, 2017 17:01
-
-
Save limscoder/07f7880f0787e8af1c336b0b82df282b to your computer and use it in GitHub Desktop.
DOM properties from data
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
selection.attr('text', d => d.name) | |
.style('color', d => (d.role === 'human' ? 'purple' : 'yellow')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment