d3-indented-tree API example #3
✓ Published0🌍 Public
EEE2dev
Last edited Dec 30, 2020
Created on Jul 24, 2019
This example demonstrates how to load CSV data in a hierarchical format for the d3-indented-tree API, displaying an indented tree chart that updates its link widths dynamically. The code uses d3.v6 and the d3-indented-tree library, fetching data from a remote CSV file via the `source` specification. After rendering, `myChart.linkWidth("population")` reconfigures the link thickness based on the population field after a two-second delay. The visualization leverages D3’s selection and append methods to inject the chart into the DOM, while the CSS from the library styles the tree layout.
AI-generated descriptionAPI examples for d3-indented-tree
data format - Readme example 2
This example shows how to load csv data in a hierarchical 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