Skip to main content
100%

Fork of Fork of World Countries Tree

✓ Published0🌍 Public
MMichael Rovinsky
Last edited May 31, 2023
Created on May 31, 2023

This example shows a small hierarchical tree diagram with eight leaf nodes, each labeled with a name such as "James," "Jimmy," "Joe," or "John." It uses d3.hierarchy and d3.tree to compute node positions and d3.linkVertical to draw curved connecting paths between the root and its children. The visualization supports zooming and panning via d3.zoom, and it dynamically adjusts text font sizes based on the available horizontal spacing between nodes, ensuring labels fit without overlap. Data originates from a local JSON file.

AI-generated description
MIT Licensed

Similar vizzes