Tree diagram using images for nodes in v5
This tree diagram displays hierarchical data using images for each node, with links color-coded by the `level` property from the data. Built with D3 v5, it uses `d3.tree()` and `d3.hierarchy()` to compute the layout, then renders nodes as SVG `<image>` elements with `xlink:href` pointing to `d.data.icon`, while small labels appear beside each icon. The connector paths are drawn as cubic Bézier curves with the `.link` class, and all elements are styled via inline CSS. The data is embedded as a JSON object in the script.
AI-generated descriptionThis is a tree diagram with images used for nodes written with d3.js v5. It is based on the styled tree version here
This is designed to be used as part of documenting an update to the book D3 Tips and Tricks to version 5 of d3.js.