d3-indented-tree API example #4
✓ Published0🌍 Public
EEE2dev
Last edited Dec 30, 2020
Created on Jul 24, 2019
This example demonstrates how to update an indented tree diagram’s link widths based on a numeric field. It initially renders a tree from a CSV dataset, defining hierarchy levels for world, continent, and country. After a two-second delay, the `linkWidth` method is called to encode the population values into the stroke thickness of the links. The visualization uses D3 v6 and the d3-indented-tree library, with the chart attached to the body via a `div` and invoked through the `d3.indentedTree` factory. The data is loaded from a remote CSV file specified in the configuration.
AI-generated descriptionAPI examples for d3-indented-tree
data format - Readme example 3
- 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