block by veltman 94a6ddbb5c4a23ebae34

Jumping to the end of a transition

Full Screen

An example of a way to declare the end-state of a transition once in a generic setter with chaining, and then use that setter on the transition to update gradually or call it on a selection to jump to the end state.

Should work with .style(), .attr(), .styleTween(), and .attrTween(), but not .tween().

index.html