Skip to main content
100%

d3-indented-tree API example #21

✓ Published0🌍 Public
EEE2dev
Last edited Dec 30, 2020
Created on Aug 27, 2019

This example demonstrates how to dynamically adjust link strength in a d3-indented-tree diagram based on a data field, using the `linkStrength("size")` method. It visualizes hierarchical data from a remote flare.json file, where link thickness reflects the "size" attribute. The code uses d3.v6 and the d3-indented-tree library, initially rendering the tree and then programmatically changing link width to 100 after a two-second delay. The example highlights the API’s ability to bind visual properties to data values, allowing for interactive or time-based updates.

AI-generated description

API examples for d3-indented-tree


myChart.linkStrength() - 2

This example shows how to set a link strength dynamically based on a data field


Acknowledgements:

mit Licensed

Similar vizzes