From 7c9cbd2216e4f39ea916b7609ecfdaa92a0a7d05 Mon Sep 17 00:00:00 2001 From: RosaRomeroGomez Date: Wed, 4 Apr 2018 15:14:11 -0400 Subject: [PATCH] Added note to docs/InteractiveForceGraph.md related to render issue when alpha is not set to 1 in SimulationOptions. Addition discussed in issue #60 --- docs/InteractiveForceGraph.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/InteractiveForceGraph.md b/docs/InteractiveForceGraph.md index 9e0d874..9d0f353 100644 --- a/docs/InteractiveForceGraph.md +++ b/docs/InteractiveForceGraph.md @@ -18,6 +18,22 @@ import { InteractiveForceGraph, ForceGraphNode, ForceGraphLink } from 'react-vis ``` +**Important note:** +If the graph moves off the canvas in the upper-left, you need to set ```alpha``` in ```simulationOptions``` to ```1```. +For example, using the example above: +``` + console.log(node)} + highlightDependencies +> + +.... +(Rest of the code) +``` + + ## Props `` inherits all of the props from [``](ForceGraph.md), and adds: