Score
0
Watch 9 Star 26 Fork 2

antv / GraphinJavaScriptMIT

Join us
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
Graphin 取名意为 Graph Insight(图的分析洞察),是一个基于 G6 封装的 React 组件库。简单,高效,开箱即用。它的 Logo 是一个石墨烯(Graphene),意为蕴藏未来的潜力 spread retract

  • TypeScript 91.9%
  • CSS 4.5%
  • JavaScript 3.3%
  • HTML 0.3%
Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

中文文档

Graphin means Graph Insight (analysis of graphs). It is a library based on G6 and React and offers graph analysis ability out of the box. Graphin's logo is graphene, which means the potential of the future.

For more infomation, please check the Graphin Website.

graphin

Graphin use lerna to manage this repo. This repo contains the following packages:

/packages
    graphin
    graphin-components
    graphin-studio
    graphin-site

Please checkout the specific package:

Package Name Description
@antv/graphin Core React component of Graphin
@antv/graphin-components Graphin components
@antv/graphin-site Graphin documentation website
graphin-studio A Graphin demo: generic graph analysis workbench based on Graphin

Graphin Quick Start

Install

npm run --save @antv/graphin

Usage

import React from 'react';
import ReactDOM from 'react-dom';
import Graphin, { Utils } from '@antv/graphin';

import '@antv/graphin/dist/index.css'; // Don't forget to import css
import './styles.css';

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);

Develop Graphin

  • Set npmClient

Set your npmClient in lerna.json, developers in China can set npmClient to cnpm

// ./lerna.json
{
    "packages": ["packages/*"],
    "npmClient": "yarn",
    "version": "0.0.0"
}
  • Install dependencies
npm i
  • Install dependencies for each package
npm run bootstrap
  • Start the local compilation of graphin and graphin-components
npm run start
  • Start the Graphin studio demo after npm run start
npm run studio
  • Start the Graphin Doc site
npm run site

More Info

Comments ( 0 )

Sign in for post a comment

JavaScript
1
https://gitee.com/antv/graphin.git
git@gitee.com:antv/graphin.git
antv
graphin
Graphin
master

Help Search