🌐
npm
npmjs.com β€Ί package β€Ί react-tree-graph
react-tree-graph - npm
A simple react component which renders data as a tree using svg.
      Β» 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.
🌐
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
Tree graph for React / React Tree Diagram Component - jyoketsu/tree-graph-react
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
How to build a treemap with React and D3.js. A set of re-usable components
🌐
npm
npmjs.com β€Ί package β€Ί react-d3-tree
react-d3-tree - npm
React component to create interactive D3 tree hierarchies. Latest version: 3.6.6, last published: a year ago. Start using react-d3-tree in your project by running `npm i react-d3-tree`. There are 50 other projects in the npm registry using react-d3-tree.
      Β» npm install react-d3-tree
    
Published Β  Feb 28, 2025
Version Β  3.6.6
Author Β  Ben Kremer
🌐
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%
🌐
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%
Find elsewhere
🌐
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%
🌐
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 ?

🌐
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.
🌐
CodeSandbox
codesandbox.io β€Ί examples β€Ί package β€Ί tree-graph-react
tree-graph-react examples - CodeSandbox
Use this online tree-graph-react playground to view and fork tree-graph-react example apps and templates on CodeSandbox.
🌐
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.
🌐
GitHub
github.com β€Ί codesinghanoop β€Ί react-native-d3-tree-graph
GitHub - codesinghanoop/react-native-d3-tree-graph: An implementation of d3 graph to construct flow chart(d3 topological graph(tree)). Β· GitHub
import AwesomeHierarchyGraph from 'react-native-d3-tree-graph' var root = { name: "", id: 1, hidden: true, children: [ { name: "Q", id: 16, no_parent: true }] } var siblings = [{ source: { id: 3, name: "C" }, target: { id: 11, name: "K" } }] export default class example extends Component { render() { return ( <View style={styles.container}> <AwesomeHierarchyGraph root = {root} siblings = {siblings} /> </View> ); } const styles = StyleSheet.create({ container: { flex: 1, justifyContent: 'center', alignItems: 'center', backgroundColor: '#F5FCFF', }, welcome: { fontSize: 20, textAlign: 'center', margin: 10, }, instructions: { textAlign: 'center', color: '#333333', marginBottom: 5, }, });
Starred by 39 users
Forked by 15 users
Languages Β  JavaScript 62.9% | Objective-C 21.5% | Python 8.4% | Java 7.2%