Home
Softono

React Vis Force

Open source JavaScript
407
Stars
73
Forks
39
Issues
12
Watchers
3 years
Last Commit

 About React Vis Force

d3-force graphs as React Components.

Platforms

Web Self-hosted

Languages

JavaScript

Need Help Installing React Vis Force?

We provide expert installation service for this software. Our team will install, configure, and secure React Vis Force on your server. plans start at just $30.

React Vis Force

View on GitHub

react-vis-force Build Status Coverage Status

react-vis-force demo

See the live demo at http://uber.github.io/react-vis-force

Overview

react-vis-force applies the react-vis and d4-style component approach to the d3-force library. This allows users to declaratively provide links and nodes as children of a ForceGraph component.

Example

import React from 'react';
import {ForceGraph, ForceGraphNode, ForceGraphLink} from 'react-vis-force';

<ForceGraph simulationOptions={{ height: 300, width: 300 }}>
  <ForceGraphNode node={{ id: 'first-node' }} fill="red" />
  <ForceGraphNode node={{ id: 'second-node' }} fill="blue" />
  <ForceGraphLink link={{ source: 'first-node', target: 'second-node' }} />
</ForceGraph>

Docs