Description
react-graph-vis is a React component that renders network graphs with the vis.js library. The graphs are scrollable and zoomable, ready for retina screens, and dynamic, and they switch layout on a double click. The component takes three vis.js configuration objects as props: graph, which holds an edges array and a nodes array; options, which takes the normal vis.js options; and events, an object whose keys are event names and whose values are callbacks. The README explains that vis.js is imperative, so changing graph properties redraws the whole graph, which is why the component wraps vis.js rather than porting it fully to React. Usage is shown with a code example, and the repository has a demo in its example folder. The README links to visjs.org for more on the underlying library.…
Highlights
- React component for vis.js network graphs
- Scrollable, zoomable and retina-ready graphs
- Graph, options and events props
- Layout switches on double click
- Demo in the example folder
Ratings & Reviews
No ratings yet
Be the first to rate react-graph-vis.
People also visit
react-graph-vis FAQ
What is react-graph-vis?
A React component for rendering network graphs with vis.js.
What props does it take?
graph with edges and nodes arrays, options with vis.js options, and events with callbacks keyed by event name.
Why is it a wrapper and not a full React port?
The README says vis.js is imperative, so changing graph properties redraws the whole graph, and a full port is a big project.
Where is the demo?
In the example folder of the repository.
What are the best react-graph-vis alternatives?
Popular alternatives to react-graph-vis include react-vis, react-c3js and @visx/group. See all react-graph-vis alternatives


















