block by tophtucker 07acfe8e14559532fd226c954783cd7d

Diagonal II

Full Screen

Someone just wanted to animate boxes in diagonally. Just sum the row and column: .transition().delay(function(d,i) { return (d.row + d.column) * delay; }).

This does not depend on data initially being sorted, or in any particular shape or arrangement; it could be square, rectangular, sparse, etc.

See also:

index.html