d3-indented-tree API example #10
✓ Published0🌍 Public
EEE2dev
Last edited Dec 30, 2020
Created on Jul 23, 2019
This example demonstrates how to load hierarchical data from a CSV file using a custom key field (`first_name`) and render it as an indented tree with aligned leaf nodes. The visualization uses the d3-indented-tree plugin on top of D3 v6, with the `d3.indentedTree` API configuring the data source and enabling leaf alignment. After two seconds, the chart dynamically increases the link width to 100 pixels, showing API-driven updates. Data is fetched from a remote CSV file hosted on jsDelivr, and the chart is rendered by appending a div and calling the chart function on it.
AI-generated descriptionAPI examples for d3-indented-tree
data format - hierarchical csv file, different key
This example shows how to load data from a csv file in a hierarchical format with a different key. Additionally, leaves are aligned.
- for documentation, go to https://github.com/EE2dev/d3-indented-tree
- for other examples, go to https://github.com/EE2dev/d3-indented-tree#examples
Acknowledgements:
mit Licensed