diff --git a/static/circlepacked/index.js b/static/circlepacked/index.js index 61a0aa5..760f2a5 100644 --- a/static/circlepacked/index.js +++ b/static/circlepacked/index.js @@ -147,7 +147,8 @@ function chart(data) { function zoom(event, d) { - if (d.depth < 2) return console.log(d.depth, d) + if (d.depth > 1 && d.parent) {d = d.parent} + else{return 0}; const focus0 = focus;