D3 Hierarchy Component 4
✓ Published1🌍 Public
A hierarchical tree diagram displays task categories and subgoals, such as Programming under Main Goal and Cardio under Health, using SVG rectangles and text labels connected by curved horizontal links. The D3 v3 component builds the layout with `d3.hierarchy` and `d3.tree`, applies `linkHorizontal` for edge paths, and supports zooming via `d3.zoom`. Node positions derive from the tree layout’s separation function, while styling applies green translucent links and hover effects. Data loads from a local `data.json` file.
AI-generated descriptionHierarchy Component.
TODO:
- Adjustable shape of links
- Add possibility to add nodes
- Show additional information when node hovered
- Show weight of the link (if present)
- Allow to collapse subhierarchy
- Set proper size of rectangle over text
- Add radial style
MIT Licensed