Fork of D3 Hierarchies
This tree visualization displays the hierarchical relationship between movie distributors and genres, using a dataset of ten films. It shows how genres are grouped under their respective distributors, with leaf nodes labeled by film count. The code uses `d3.rollup` to aggregate data, `d3.hierarchy` and `d3.tree` to compute the layout, and joins SVG elements to render nodes, edges, and labels. The root node is the aggregate of all distributors, with genres as intermediate nodes and film counts as leaf labels.