d3 v5 tree is not draggable on initialization with angular 7
问题 I have encountered a weird problem i have created a D3 tree which allows me to drag only after zoom otherwise it does not.I have tried @hostListerner and event binding but those things are outside D3 event hence these events are not working properly. here is code please correct me id i am doing something wrong. Initialization of D3 tree displayTree() { d3.json("./assets/flare.json").then(data => { data = this.d3Object; this.root = d3.hierarchy(data); this.root.x0 = height; this.root.y0 = 0;