ReGraph is a library of React components and analysis functions for client-side visualization of connected data.
You can try out ReGraph in your browser by opening a live code Playground. When you're ready, use our tutorials to add ReGraph to your existing app or to create a brand new ReGraph app.
ReGraph contains two visualization components - a chart and a time bar.
The chart is designed to visualize relationships in connected datasets and it comes loaded with features such as combos or graph analysis to untangle, filter and analyze your data.
The time bar shows events over time. You can use it to filter chart items down to a certain time period, reducing chart clutter, or you can use it to highlight activity for a particular item.
ReGraph Example
ReGraph Example
ReGraph lets you show a chart or time bar by describing its state with a series of objects. State can mean a number of things to ReGraph, including:
- The data to render
- Node positions
- Layout and animation rules
- Viewport control
- Options
This state is passed to the component via props and will queue an animated redraw for the chart.
Some state is derived internally by ReGraph, such as the current selection after a user clicks a node, or the node positions after a layout runs. ReGraph publishes these changes through the onChange event, so you can store them and pass them back as props.
ReGraph relies on immutability to maintain state and understand when changes occur. See the ReGraph Re-rendering section for details.
Data is loaded into ReGraph by passing a plain JavaScript object into the items prop. See the API Reference for all available props and data formats.
