🌍 Public
Viewing a saved revision (read-only)
fc96e211bf164145a2bbacb25bac02ec
Tree Example
This example visualizes a hierarchical tree of Torah portions, with the root labeled "Torah" branching into the five books—Breishit, Shmot, Vayikra, Bamidbar, and Deuteronomy—and each book expanding into its individual weekly portions. The code uses d3.tree() to compute the layout, d3.hierarchy() to structure the data, and d3.linkVertical() to generate the curved paths connecting parent nodes to children. It renders the resulting SVG with paths for links and text elements for node labels, styling parent nodes at 16px and leaf nodes at 8px.
AI-generated descriptionsomething here