uber/react-vis-force

Name: react-vis-force

Owner: Uber Open Source

Description: d3-force graphs as React Components.

Created: 2016-10-03 22:53:52.0

Updated: 2018-01-15 19:10:22.0

Pushed: 2017-12-14 00:55:02.0

Homepage: http://uber.github.io/react-vis-force

Size: 2021

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits
Ale? Roubí?ek2016-11-16 06:40:15.07
Paul Marbach2017-06-02 18:29:38.061
Nikordaris2017-06-01 19:07:39.09
Michael Baldwin2016-12-03 07:58:29.01
Sebastian Silbermann2017-08-25 15:54:23.02

Other Committers

UserEmailMost Recent Commit# Commits

README

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
rt React from 'react';
rt {ForceGraph, ForceGraphNode, ForceGraphLink} from 'react-vis-force';

ceGraph simulationOptions={{ height: 300, width: 300 }}>
orceGraphNode node={{ id: 'first-node' }} fill="red" />
orceGraphNode node={{ id: 'second-node' }} fill="blue" />
orceGraphLink link={{ source: 'first-node', target: 'second-node' }} />
rceGraph>
Docs

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.