Skip to main content
100%

Hierarchy Explorer API Demos

✓ Published0🌍 Public
EEE2dev
Last edited May 28, 2019
Created on May 17, 2019

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 description

Hierarchy explorer

This example shows how to align leaves.

More API call examples

Link to hierarchy explorer on github.


Built with blockbuilder.org

mit Licensed

Similar vizzes