Skip to main content
100%

Tree Demo

✓ Published0🌍 Public
TThanaporn-sk
Last edited May 3, 2017
Created on May 3, 2017

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.

AI-generated description

Built with blockbuilder.org

forked from <a href='http://bl.ocks.org/hdickie/'>hdickie</a>'s block: <a href='http://bl.ocks.org/hdickie/1ca2adf53e7f5fdb7ec43a3bd843bb0c'>HW 4 template</a>

mit Licensed

Similar vizzes