@cylynx/graphin
v2.2.0
Published
the react toolkit for graph analysis based on g6
Downloads
30
Readme
@antv/graphin
This package is the core React component of Graphin, the graph analysis toolkit based on G6 3.x.
Install
npm install @antv/graphin --save
UMD bundle is available in releases. External dependencys: lodash, react, react-dom, @antv/g6.
Usage
import React from 'react';
import ReactDOM from 'react-dom';
import Graphin, { Utils } from '@antv/graphin';
const App = () => {
const data = Utils.mock(10).graphin();
return (
<div className="App">
<Graphin data={data} />
</div>
);
};
const rootElement = document.getElementById('root');
ReactDOM.render(<App />, rootElement);
Docs
Please refer to Graphin doc site
APIs
Please refer to Graphin doc site for API