Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions docs/InteractiveForceGraph.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,22 @@ import { InteractiveForceGraph, ForceGraphNode, ForceGraphLink } from 'react-vis
</InteractiveForceGraph>
```

**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:
```
<InteractiveForceGraph
simulationOptions={{ height: 300, width: 300, **alpha:1** }}
labelAttr="label"
onSelectNode={(node) => console.log(node)}
highlightDependencies
>

....
(Rest of the code)
```


## Props

`<InteractiveForceGraph />` inherits all of the props from [`<ForceGraph />`](ForceGraph.md), and adds:
Expand Down