Tree Demo
This example demonstrates seven different hierarchical layouts—traditional tree, dendrogram, circular traditional, circular dendrogram, circle packing, treemap, and icicle—using Java class data from a CSV file. Each layout is rendered as a separate SVG, with nodes and links colored by depth using `d3.scaleOrdinal` and the `d3.schemeYlGnBu` color scheme. The code uses `d3.stratify` to convert the flat CSV data into a hierarchy, then applies layout algorithms like `d3.tree`, `d3.cluster`, `d3.pack`, `d3.treemap`, and `d3.partition`. Interactive tooltips appear on mouseover, highlighting the selected node.