Accepted answer

I am having the same problem. I have figured out that a particular piece of the zoom function, if applied on the root immediately after generating the intial view, fixes this issue. Adding this code to the end of your d3.json file should do the trick. Still investigating for a better solution.

function init(d) {
  var transition = d3.transition()
    .each("start", function(d) {
      if (d.parent === focus) = "inline";

Related Query

More Query from same tag