Skip to main content
100%

d3-indented-tree API example #12

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

This example demonstrates how to embed hierarchical CSV data directly in an HTML document using an aside element, with a custom key field (`myKey`) instead of the default. The d3-indented-tree API reads the data from `aside#data`, renders an indented tree visualization, and dynamically adjusts link width via the `linkWidth` method after a two-second delay. The code loads D3 v6 and the d3-indented-tree library from CDNs, then appends the chart to the body using a `showChart` function. The tree uses color-coded nodes from the CSV’s `color` column, and the data format requires no web server, making it suitable for local examples.

AI-generated description

API examples for d3-indented-tree


data format - hierarchical csv data embedded, different key

This example shows how to embed csv data in a hierarchical format into your document und use a different key. This option can be used without a web server.


Acknowledgements:

mit Licensed

Similar vizzes