🌍 Public
Viewing a saved revision (read-only)
5f22d5f339c74b2195815ff91400b9c4
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