Hierarchy Explorer API Demos
This example demonstrates a hierarchical tree visualization that initially renders with default leaf alignment, then animates to align all leaves after a two-second delay. The chart uses the hierarchyExplorer library, built on D3.js v5, to display hierarchical data loaded from a JSON file (flare.json) containing nested objects with a "name" key. The visualization propagates a "size" value through the hierarchy and leverages the library's `alignLeaves` method to realign leaf nodes dynamically. The implementation loads the hierarchyExplorer CSS and JavaScript from a CDN, while the chart is rendered into a div using a declarative configuration object and a chained method call.
AI-generated descriptionHierarchy explorer
This example shows how to align leaves.
More API call examples
Link to hierarchy explorer on github.
Built with blockbuilder.org