Skip to content

Instantly share code, notes, and snippets.

@jesgundy
Created May 8, 2014 18:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jesgundy/fd40712f4e44330d78d9 to your computer and use it in GitHub Desktop.
Save jesgundy/fd40712f4e44330d78d9 to your computer and use it in GitHub Desktop.
D3 scalable delayed transition effect.
// …
.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