🌐
npm
npmjs.com › package › react-tree-graph
react-tree-graph - npm
January 13, 2025 - A react library for generating a graphical tree from data using d3. Latest version: 8.0.3, last published: a year ago. Start using react-tree-graph in your project by running `npm i react-tree-graph`. There are 16 other projects in the npm registry ...
      » npm install react-tree-graph
    
Published   Jan 13, 2025
Version   8.0.3
Author   James Brierley
🌐
CodeSandbox
codesandbox.io › examples › package › react-tree-graph
react-tree-graph examples - CodeSandbox
Use this online react-tree-graph playground to view and fork react-tree-graph example apps and templates on CodeSandbox.
Discussions

Any libraries for representing trees in react?
You could try React Flow More on reddit.com
🌐 r/reactjs
23
15
December 3, 2023
Any libraries out there that you recommend for charts/graphs/trees in React?
I highly recommend Apache ECharts. Well maintained and very powerful. Also, they have cool tree charts More on reddit.com
🌐 r/reactjs
9
11
October 9, 2022
Graph / Branching style UI help
https://bkrem.github.io/react-d3-tree/ It's called Tree Graphs. The link is in d3 implementation. Mind Maps apps uses this kind of graph UI. More on reddit.com
🌐 r/reactjs
2
3
April 29, 2022
Library for creating visualization of graphs/trees data structures ?

https://github.com/crubier/react-graph-vis

More on reddit.com
🌐 r/reactjs
2
6
January 28, 2016
🌐
Jpb12
jpb12.github.io › react-tree-graph
Introduction - Docs ⋅ react-tree-graph
Working examples with source code for the react-tree-graph JavaScript library
🌐
GitHub
github.com › jyoketsu › tree-graph-react
GitHub - jyoketsu/tree-graph-react: Tree graph for React / React Tree Diagram Component
import { Tree, MenuTree, MiniMenu, Catalog, Mind } from 'tree-graph-react'; import 'tree-graph-react/dist/tree-graph-react.cjs.development.css'; const nodes = { '001': { _key: '001', name: '项目管理', father: '', sortList: ['002', '003', '004', '005'], contract: false, avatarUri: 'https://psnine.com/Upload/game/11387.png', icon: 'https://cdn-icare.qingtime.cn/rooter.svg', checked: true, hour: 0.1, limitDay: 1610726400000, }, '002': { _key: '002', name: '计划进度', father: '001', sortList: ['006', '007'], contract: false, checked: true, hour: 0.1, limitDay: 1610726400000, icon: 'https:/
Starred by 28 users
Forked by 6 users
Languages   TypeScript 99.4% | TypeScript 99.4%
🌐
GitHub
github.com › jpb12 › react-tree-graph
GitHub - jpb12/react-tree-graph: A react library for generating a graphical tree from data using d3
A react library for generating a graphical tree from data using d3 - jpb12/react-tree-graph
Starred by 200 users
Forked by 38 users
Languages   JavaScript 93.2% | MDX 4.1% | HTML 1.5% | CSS 1.2% | JavaScript 93.2% | MDX 4.1% | HTML 1.5% | CSS 1.2%
🌐
React Graph Gallery
react-graph-gallery.com › treemap
Treemap with React
A treemap displays a hierarchical dataset (a tree) as a set of rectangles. Rectangle sizes are proportional to their numeric value. d3.js has some handy functions to compute the rectangle positions.
🌐
npm
npmjs.com › package › react-d3-tree
react-d3-tree - npm
February 28, 2025 - React D3 Tree is a React component that lets you represent hierarchical data (e.g. family trees, org charts, file directories) as an interactive tree graph with minimal setup, by leveraging D3's tree layout.
      » npm install react-d3-tree
    
Published   Feb 28, 2025
Version   3.6.6
Author   Ben Kremer
🌐
GitHub
github.com › bkrem › react-d3-tree
GitHub - bkrem/react-d3-tree: :deciduous_tree: React component to create interactive D3 tree graphs · GitHub
React D3 Tree is a React component that lets you represent hierarchical data (e.g. family trees, org charts, file directories) as an interactive tree graph with minimal setup, by leveraging D3's tree layout.
Starred by 1.2K users
Forked by 286 users
Languages   JavaScript 50.6% | TypeScript 49.4%
Find elsewhere
🌐
GitHub
github.com › jpb12 › react-tree-graph › tree › v3.3.0
GitHub - jpb12/react-tree-graph at v3.3.0
A react library for generating a graphical tree from data using d3 - GitHub - jpb12/react-tree-graph at v3.3.0
Starred by 196 users
Forked by 38 users
Languages   JavaScript 93.2% | MDX 4.1% | HTML 1.5% | CSS 1.2% | JavaScript 93.2% | MDX 4.1% | HTML 1.5% | CSS 1.2%
🌐
GitHub
github.com › jpb12 › react-tree-graph › tree › v7.0.6
GitHub - jpb12/react-tree-graph at v7.0.6
A react library for generating a graphical tree from data using d3 - GitHub - jpb12/react-tree-graph at v7.0.6
Starred by 195 users
Forked by 38 users
Languages   JavaScript 93.8% | MDX 3.7% | HTML 1.4% | CSS 1.1% | JavaScript 93.8% | MDX 3.7% | HTML 1.4% | CSS 1.1%
🌐
Reddit
reddit.com › r/reactjs › any libraries for representing trees in react?
r/reactjs on Reddit: Any libraries for representing trees in react?
December 3, 2023 -

what's the best way to draw trees like this one in react from any data

              ┌───┐
              └─┼─┘ ┌─┐
                │   └┼┘
     ┌───────┐  │    │
     │       │  ├────┘
     └───┬───┘  │     ┌──┐
         │      │     └┼─┘
         └┬─────┤      │
┌───┐     │     │      │
│   ├─────┘     ├──────┘
└───┘           │
                │
                │

 

I want each node to be a circle with image and clickable, pretty similar to how the skill tree looked in god of war 4. Should I use d3 or are there simpler ways ?

🌐
GitHub
github.com › jpb12 › react-tree-graph › tree › v5.1.1
GitHub - jpb12/react-tree-graph at v5.1.1
A react library for generating a graphical tree from data using d3 - GitHub - jpb12/react-tree-graph at v5.1.1
Starred by 198 users
Forked by 38 users
Languages   JavaScript 93.2% | MDX 4.1% | HTML 1.5% | CSS 1.2% | JavaScript 93.2% | MDX 4.1% | HTML 1.5% | CSS 1.2%
🌐
GitHub
github.com › jpb12 › react-tree-graph › tree › v4.1.1
GitHub - jpb12/react-tree-graph at v4.1.1
A react library for generating a graphical tree from data using d3 - GitHub - jpb12/react-tree-graph at v4.1.1
Starred by 198 users
Forked by 38 users
Languages   JavaScript 93.2% | MDX 4.1% | HTML 1.5% | CSS 1.2% | JavaScript 93.2% | MDX 4.1% | HTML 1.5% | CSS 1.2%
🌐
GitHub
github.com › jpb12 › react-tree-graph › tree › v6.1.0
GitHub - jpb12/react-tree-graph at v6.1.0
A react library for generating a graphical tree from data using d3 - GitHub - jpb12/react-tree-graph at v6.1.0
Starred by 198 users
Forked by 38 users
Languages   JavaScript 93.2% | MDX 4.1% | HTML 1.5% | CSS 1.2% | JavaScript 93.2% | MDX 4.1% | HTML 1.5% | CSS 1.2%
🌐
React
react.dev › learn › understanding-your-ui-as-a-tree
Understanding Your UI as a Tree – React
The tree is composed of nodes, each of which represents a component. App, FancyText, Copyright, to name a few, are all nodes in our tree. The root node in a React render tree is the root component of the app.
🌐
React Flow
reactflow.dev › examples › layout › dagre
Dagre Tree - React Flow
February 4, 2026 - import React, { useCallback } from 'react'; import { Background, ReactFlow, addEdge, ConnectionLineType, Panel, useNodesState, useEdgesState, } from '@xyflow/react'; import dagre from '@dagrejs/dagre'; import '@xyflow/react/dist/style.css'; import { initialNodes, initialEdges } from './initialElements'; const dagreGraph = new dagre.graphlib.Graph().setDefaultEdgeLabel(() => ({})); const nodeWidth = 172; const nodeHeight = 36; const getLayoutedElements = (nodes, edges, direction = 'TB') => { const isHorizontal = direction === 'LR'; dagreGraph.setGraph({ rankdir: direction }); nodes.forEach((nod
🌐
React.js Examples
reactjsexample.com › tag › tree
Tree - React.js Examples
May 20, 2018 - Chkflow is a react component editor/view for tree and graph data structures inspired by workflowy's interface.