Skip to main content
100%

Search Collapsible Tree

✓ Published0🌍 Public
663anp3ca
Last edited Oct 31, 2018
Created on Oct 31, 2018

This searchable collapsible tree extends the classic D3.js hierarchical layout with an interactive Select2 search box. The visualization displays the Flare dataset as a tree of circles and links, where users can type a leaf node's name into the search field. The tree then smoothly expands to reveal the path to that node, highlighting the route in red while dimming unrelated branches. Built with SVG and animated transitions, the redrawn nodes and links respond fluidly to the search query, making it easy to locate and focus on specific leaf nodes within the hierarchy.

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>

forked from <a href='http://bl.ocks.org/FrissAnalytics/'>FrissAnalytics</a>'s block: <a href='http://bl.ocks.org/FrissAnalytics/238ab4decbead9e5efda0ece5293e08a'>Search Collapsible Tree</a>

mit Licensed

Similar vizzes