Skip to main content
100%

d3-indented-tree API example #2

✓ Published0🌍 Public
EEE2dev
Last edited Dec 30, 2020
Created on Jul 24, 2019

This example demonstrates the d3-indented-tree API by rendering a hierarchical tree from JSON data loaded from an external URL. It shows how to initialize the chart with a data specification that defines the data source and key field, then append the chart to the DOM. The visualization updates dynamically after a two-second delay, changing the link width to encode a "population" value. The code uses d3.v6 alongside the d3-indented-tree library, with data fetched from a GitHub-hosted test file, and relies on standard d3 selection and timing methods to manage the chart lifecycle.

AI-generated description

API examples for d3-indented-tree


data format - Readme example 1

This example shows how to load data in JSON format


Acknowledgements:

mit Licensed

Similar vizzes