Line 106: | Line 106: | ||
function init(){ | function init(){ | ||
− | width = | + | width = 520, |
− | height = | + | height = 520; |
Line 118: | Line 118: | ||
− | start = [0, | + | start = [0, 27.5] |
//Setup zoom behavior | //Setup zoom behavior | ||
var zoom = d3.behavior.zoom(false) | var zoom = d3.behavior.zoom(false) | ||
.translate(projection.origin()) | .translate(projection.origin()) | ||
.scale(projection.scale()) | .scale(projection.scale()) | ||
− | .scaleExtent([ | + | .scaleExtent([250, 3000]) |
.on("zoom", move); | .on("zoom", move); | ||
Revision as of 20:34, 31 October 2017