Skip to main content
100%

D3 Hierarchy Component 1

✓ Published1🌍 Public
WWRCIECH
Last edited Jan 15, 2023
Created on Jan 15, 2023
Forked from D3 Forces - ZOOM

This example displays a hierarchical tree of tasks, branching from a root "Tasks" node into categories like "Main Goal," "Health," and "Awards," with sub-goals such as "Programming," "Cardio," and "Pizza." The visualization uses a D3.js horizontal tree layout, rendered as an SVG, with nodes positioned via a tree algorithm and connected by green path links. The code loads data from a JSON file, employs a custom `hierarchy` component, and uses `linkHorizontal` for path generation, with zoom functionality enabled through D3's zoom module. Text labels are styled with the Poppins font, with compound and leaf nodes distinguished by font size and text anchor.

AI-generated description

D3 Forces.

MIT Licensed

Similar vizzes