# bkrem/react-d3-tree

:deciduous_tree: React component to create interactive D3 tree graphs

Repository: https://github.com/bkrem/react-d3-tree
Canonical: https://ross.abutalabs.com/products/react-d3-tree
Homepage: https://bkrem.github.io/react-d3-tree
Language: JavaScript
License: MIT
License Family: permissive
Topics: react, d3, graph, tree, svg, hierarchical-data, hierarchy, d3-visualization, chart, tree-graphs, d3-hierarchy, d3-tree, tree-graph
Last push: 2025-02-28T04:41:05+00:00

## Health v2 (maintenance only)
Score: 38/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 9, release rhythm 40, longevity 100
- inputs: {"age_days": 3457, "days_push": 551, "days_rel": 551, "gap_med": 1, "n_releases_24m": 4}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1197, forks 285 (observed 2026-08-28T04:03:57.446101+00:00)

## What it is
A React component that renders hierarchical data as interactive D3-based tree graphs using SVG. It wraps D3's tree layout with customizable nodes, links, and event handlers for minimal-setup visualization.

## Use cases
- render an org chart in react
- visualize a family tree as an interactive graph
- display a file directory hierarchy as a tree
- draw a d3 tree diagram from nested json
- show hierarchical data as an expandable svg tree
- build a decision tree visualization in a react app

## When to choose
- you need a tree/hierarchy chart in a React app with minimal setup
- you want interactive nodes with custom rendering and click handlers
- your data is naturally nested parent-children JSON

## When to avoid
- you need general graph/network visualizations rather than trees
- you're not using React
- you need charts other than tree hierarchies (bar, line, etc.)

## Facets
- artifact type: library
- maturity: stable
- function: data-visualization, ui-components, charts
- domain: data-visualization, frontend, web-development
- platform: browser
- tags: react, d3, tree-graph, svg, hierarchical-data, org-chart, nodejs

## Member repositories
- bkrem/react-d3-tree (main) score 38

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:57.446101+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:21:26.177882+00:00, confidence not recorded.
  - readme: https://github.com/bkrem/react-d3-tree (fetched 2026-08-28T04:03:57.446101+00:00, sha 74eb33a91fff)
  - homepage: https://bkrem.github.io/react-d3-tree (fetched 2026-08-29T12:28:41.659224+00:00, sha 72ceafb28b8f)
  - registry_npm: https://registry.npmjs.org/react-d3-tree (fetched 2026-08-29T12:28:41.668047+00:00, sha 698370c701db)
- Data as of 2026-08-30T08:39:29.467469+00:00.
