Created
May 8, 2014 18:24
-
-
Save jesgundy/fd40712f4e44330d78d9 to your computer and use it in GitHub Desktop.
D3 scalable delayed transition effect.
This file contains 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
// … | |
.transition() | |
.delay(function(d, i) { | |
return i / dataset.length * 1000; // <-- Where the magic happens | |
}) | |
.duration(500) | |
// … |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment