Skip to main content
100%

Fork of Fork of D3 Hierarchy Component 3

✓ Published1🌍 Public
WWRCIECH
Last edited May 27, 2023
Created on Jan 16, 2023

This example shows a hierarchical task tree rendered as an SVG, with nodes displayed as rectangles containing text labels and connected by horizontal links. The visualization uses d3.hierarchy, d3.tree, and d3.linkHorizontal to compute and draw the layout, while d3.zoom enables panning and scaling of the entire graph. Data is loaded from a JSON file, and both nodes and links respond to hover events by changing their fill or stroke color.

AI-generated description

Hierarchy 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

Similar vizzes