🌍 Public
Viewing a saved revision (read-only)
847d6e7a9d174054b7e144137e5503df
Streaming Data Tree
This example shows a hierarchical tree of streaming services, with Netflix and Hulu branching into genres and specific titles. Each node’s shape and color encode its depth: a green circle for the root, yellow triangles for platforms, red hexagons for genres, and brown diamonds for titles. The code uses `d3.hierarchy` and `d3.tree` to compute the layout, then renders SVG paths with `d3.linkHorizontal` for links and custom-generated SVG shapes for nodes. Labels are positioned dynamically based on whether a node has children.
AI-generated description