Fork of D3 Hierarchy Component 2
✓ Published1🌍 Public
A static tree diagram visualizes a hierarchical task structure, with nodes labeled by category and sub-goals like “Programming” and “Health.” The layout is generated using D3’s `tree` and `hierarchy` functions, and links are drawn as horizontal curves via `linkHorizontal`. SVG text elements display node names, with font size scaling by depth. The view supports zooming through D3’s `zoom` behavior, and hover effects alter text styling. Data is loaded from a local JSON file.
AI-generated descriptionHierarchy Component.
TODO:
- Recangles as nodes
- Adjustable shape of links
- Add possibility to add nodes
- Show additional information when node hovered
- Show weight of the link (if present)
- Remove node when clicked
- Allow to collapse subhierarchy
MIT Licensed