Fork of D3 Stratify tree diagram
✓ Published3🌍 Public
NNita
Last edited May 1, 2021
Created on Apr 30, 2021
This visualization uses the d3.stratify layout to render a small genealogical tree from hardcoded CSV data, displaying the names Eve, Cain, Seth, and their descendants. The tree diagram uses SVG paths generated by d3.linkHorizontal for the connecting links, while text labels are positioned based on the computed x and y coordinates. The code demonstrates a React-compatible approach by importing select and tree from d3, applying a custom stratify function to parse parent-child relationships, and styling the paths with a teal stroke color defined in CSS.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed