d3-indented-tree API example #7
✓ Published0🌍 Public
EEE2dev
Last edited Dec 30, 2020
Created on Jul 23, 2019
This example demonstrates how to load relational CSV data and render it as an indented tree using the d3-indented-tree API. The visualization shows hierarchical relationships from a flat CSV file, with columns mapped to hierarchy levels for family and genus. The code initializes the chart with `d3.indentedTree(dataSpec)`, specifying the data source URL, hierarchy levels, and delimiter. It then appends the chart to the body using D3’s selection and call methods, and adjusts the link width after a two-second delay. The example relies on D3 v6 and the d3-indented-tree library.
AI-generated descriptionAPI examples for d3-indented-tree
data format - relational csv file (2)
This example shows how to load data from a csv file in a relational format.
- 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