Mike Bostock
unread,Jun 22, 2012, 9:21:21 PM6/22/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to d3...@googlegroups.com
By the time you call selection.data, you've overwritten the old data
and thus it is not available when you create the transition later.
Also, this._current doesn't store the old data, but the current
interpolated value. (The interpolator returned by d3.interpolateObject
reuses the same object to reduce garbage collection, so the result of
`i(0)` is the same object later returned by `i(t)`.) If the transition
is interrupted, say by clicking twice quickly, a new transition
correctly resumes from the interrupted state.
Mike