D3 Vertical Icicle

Is there any way to rotate this Icicle and turn it into a vertical one? Zoomable Icicle / D3 / Observable
I have tried by exchanging the “y” with “x” and “x” with “y”, the clicked function fails. I also change the all transfrom attributes to .attr("transform", d => "translate(" + d.target.x0 + "," + d.target.y0 + ")");.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.