d3-indented-tree API example #16
✓ Published0🌍 Public
EEE2dev
Last edited Dec 30, 2020
Created on Jul 25, 2019
This example demonstrates the `linkLabel` API of the d3-indented-tree plugin, showing how to reference a column’s size value for display as link labels on an indented tree. It renders a hierarchical dataset loaded from a remote JSON file, with node values propagated to link labels via the `.propagateValue("size")` and `.linkLabel("size")` methods. After two seconds, the code dynamically changes the link width using `.linkWidth(100)`, illustrating a live style update. The visualization is built with D3 v6, using `d3.indentedTree` and bound to the page via `d3.select(...).call(...)`.
AI-generated descriptionAPI examples for d3-indented-tree
myChart.linkLabel()
This example shows how to reference the column size for its values to be displayed as link labels.
- 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