This version of Mike Bostock’s Zoom Center shows the values for translate & scale and allows you to change the center.