Tree diagram using flat data with v4
This tree diagram visualizes hierarchical parent-child relationships from a flat JSON data source, allowing users to enter an ID and view its descendants as an interactive SVG tree. Built with D3.js v4, it converts flat data into a hierarchy using the `d3.stratify` API, lays out nodes with `d3.tree`, and renders curved links and labeled circular nodes via SVG paths. The visualization updates dynamically when a user submits an ID, filtering the dataset to show only relevant branches.
AI-generated descriptionThis is a tree diagram that used data from a 'flat' format. It has been written with d3.js v4 and is based on the simple horizontal version here
This is designed to be used as part of documenting an update to the book D3 Tips and Tricks to version 4 of d3.js.
forked from <a href='http://bl.ocks.org/d3noob/'>d3noob</a>'s block: <a href='http://bl.ocks.org/d3noob/e7e37cfe0e8763cb0915dee33cc2a24b'>Tree diagram using flat data with v4</a>