Search Collapsible Tree
This interactive visualization extends the D3.js collapsible tree layout with a Select2 search box, allowing users to locate and expand paths to leaf nodes in a hierarchical dataset. Typing a node name highlights the route to that node in red, dynamically toggling collapsed branches as needed. The tree uses an SVG rendering with animated transitions, while the search functionality relies on a recursive tree-traversal function and Select2’s event handling.
AI-generated description##Overview This is an extension of Collapsible Tree using Select2 to search the tree's leaf nodes.
##Usage Type the name of a leaf node in the box at the top. This should expand the tree to the depth of that node and highlight the path in red.
forked from <a href='http://bl.ocks.org/jjzieve/'>jjzieve</a>'s block: <a href='http://bl.ocks.org/jjzieve/a743242f46321491a950'>Search Collapsible Tree</a>