score:0

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.

init(root)
function init(d) {
  var transition = d3.transition()
  transition.selectAll("text")
    .each("start", function(d) {
      if (d.parent === focus) this.style.display = "inline";
    });
}

Related Query

More Query from same tag