Fork of Fork of D3 Stratify tree diagram
✓ Published0🌍 Public
This example shows a hierarchical tree diagram built from CSV data using the D3 `tree()` layout and `linkHorizontal` for curved edges. The visualization renders as an SVG within a React component, with nodes and paths styled in a green color scheme. The code loads data from an inline CSV string with parent-child relationships, then applies the D3 `stratify` method to structure the data before passing it to the tree layout. The diagram spans the full width and height of the viewport, with margins applied to position the hierarchical structure.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed