I'm trying to plot a drill-down vertical bar chart. There is an example of a horizontal drill-down bar chart as shown here https://observablehq.com/@d3/hierarchical-bar-chart, but I would like it to be vertical. I did find an old code from stack overflow D3 hierarchical bar chart - Rotate X and Y Axes. I tried to do it but it breaks since the code is written in v3 and I'm trying to build in v4.