Installation
The Graph Viz library is a high-performance WebGL based library for drawing graph visualizations. It ships in multiple packages, each having a specific purpose.
TL;DR
- The
@graph-viz/core
package exposes a data-driven WebGL-based graph renderer. - The
@graph-viz/layouts
package exposes a force directed layout built with d3.js. - The
@graph-viz/react
packages depends on the above two packages and exposes a zero-config plug-and-play React component. This component is built with the most common use cases in mind and focuses more on ease-of-use and less on configurability.
If your application has advanced requirements such as custom layouts,
complex interactions or drilldown of data, please use the core
and/or layouts
packages directly.
@graph-viz/core
WebGL based core drawing utility for graph visualizations
The @graph-viz/core
package takes graph data as input and draws it on a canvas using WebGL.
Input data is treated as an immutable entity by this package and it only exposes interaction events that
can be used by callers to update the data and re-render the visualization.
Yarn: yarn add @graph-viz/core
NPM: npm install @graph-viz/core --save
@graph-viz/layouts
Layout algorithms for graphs.
Implemented:
- Force Simulation (uses d3-force)
This packages exposes stateful (force simulations) as well as stateless plug-n-play layout generation functions that can be used to seed nodes and links data with positions on the canvas.
Yarn: yarn add @graph-viz/layouts
NPM: npm install @graph-viz/layouts --save
@graph-viz/react
React component
A zero-config plug-and-play React component to draw a force directed graph visualization.
Depends on @graph-viz/core
and @graph-viz/layouts
Yarn: yarn add @graph-viz/react
NPM: npm install @graph-viz/react --save