block by mbostock 6238040

Zoom Transitions

Full Screen

Another new feature for D3 3.3 is automatic transitions for the zoom behavior. Like the new brush transitions and earlier axis transitions, zoom transitions are initiated via transition.call. Best of all, the zoom behavior applies van Wijk and Nuij’s “Smooth and efficient zooming and panning” to preserve context while zooming!

This example jumps to a new random location every five seconds. Enjoy the trip!

index.html