I need to rotate this Icicle to a vertical(up-down) way: https://observablehq.co m/@d3/zoomable-icicle. The first screen option works but when I clicked the item, it fails. The following changes work:

Code:
.attr("transform", d => "translate(" + d.target.x0 + "," + d.target.y0 + ")");

.attr("width", d => d.x1 - d.x0 - 1)
.attr("height", d => rectHeight(d))
...