Skip to main content
100%

d3-indented-tree API example #9

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

This example loads hierarchical data from an external CSV file and renders it as an indented tree using the d3-indented-tree plugin. The code initializes the chart with `d3.indentedTree(dataSpec)`, fetching the CSV from a remote URL, and appends it to the body via `d3.select("body").append(...).call(_chart)`. After a two-second delay, it demonstrates dynamic reconfiguration by changing the link width to 100 pixels with `myChart.linkWidth(100)`. The visualization shows how the plugin handles CSV-based hierarchy and supports programmatic updates.

AI-generated description

API examples for d3-indented-tree


data format - hierarchical csv file

This example shows how to load data from a csv file in a hierarchical format.


Acknowledgements:

mit Licensed

Similar vizzes