sigma_graph_component
v0.0.3
Published
react component to make sigma.js graphs
Downloads
2
Readme
Sigma Graph Component
React component to control and animate a sigma.js network diagram.
Usage
var optional_data = {
nodes: [
{
id: 1,
name: 'hello',
category: 'dog'
},
{
id: 2,
name: 'world',
category: 'cat'
}
],
edges: [
{
source: 1,
target: 2
}
]
};
// a new stage forces the graph to animate update
return <Graph data={optional_data} stage={0} />;
Development, Install dependencies
npm install
Developing locally
Run
npm run dev
In your browser, navigate to: http://localhost:8080/
Publish
In
webpack.config.js
file, replacewww.example.com
with the real domain name.Run
npm run build
Copy the following folders/files to web server
/build, /image, index.html