Report a problem or share feedback← Catalog
React Force Graph 2D
curatedfreereact-force-graph/library
React Canvas force-directed graphs with custom node drawing, labels and selection.
$
pnpm add react-force-graph-2dnpm deps: react-force-graph-2d
Our notes
These entries use the 2D Canvas package and verified 2D source examples. The upstream project also has separate 3D/WebGL/VR/AR packages; do not substitute those APIs. Bound/warm up the simulation, map node/edge colors, provide readable selection details and stop animations/dispose on unmount. Upstream: https://github.com/vasturiano/react-force-graph. License: MIT. Package metadata: react-force-graph-2d@1.29.2; peers: react *. Runtime integration is not verified by this metadata sync.- Source
- React Force Graph 2D
- Kind
- package
- Categories
- graph
- Use as
- recipe — technique you apply to your own markup
- Applies to
- graph
- Motion
- not tagged (static or unknown)
- Tags
- data-visualization, visualization-reference, canvas
- Licence
- MIT; preserve the upstream license and notices. See source-specific terms below.
- Live demo
- github.com
- Docs
- github.com
Similar
Compare all 4 →- AntV G6antv-g6/libraryChoose layouts and rendering features for the actual graph. Preserve cleanup and resize behavior in React; extensions and G6 major versions have their own compatibility requirements. Upstream: https://github.com/antvis/G6. License: MIT. Package metadata: @antv/g6@5.1.1. Runtime integration is not verified by this metadata sync.
- Cytoscape.jscytoscape/libraryGood for connected entities rather than numeric dashboard axes. Destroy the instance on cleanup, review extensions individually and preserve a useful nonvisual representation of relationships. Upstream: https://github.com/cytoscape/cytoscape.js. License: MIT. Package metadata: cytoscape@3.34.4. Runtime integration is not verified by this metadata sync.
- React Flowreact-flow/libraryImport @xyflow/react/dist/style.css and size the parent. The MIT core is free; Pro examples/templates are a separate offering. Layout engines are optional dependencies, and persistence belongs to your app. Upstream: https://github.com/xyflow/xyflow. License: MIT. Package metadata: @xyflow/react@12.12.0; peers: react >=17; react-dom >=17; @types/react >=17; @types/react-dom >=17. Runtime integration is not verified by this metadata sync.