Ditto. I don&#x27;t think d3 is best suited for tree diagrams with dynamic values and data. I ended up stumbling across an awesome example on codepen explaining how todo it with just CSS, I modified it slightly and it&#x27;s now used in one of our production projects.<p>Here it is: <a href="http:&#x2F;&#x2F;codepen.io&#x2F;Pestov&#x2F;pen&#x2F;BLpgm" rel="nofollow">http:&#x2F;&#x2F;codepen.io&#x2F;Pestov&#x2F;pen&#x2F;BLpgm</a>