# Graphin
**Repository Path**: nelsonxyn/graphin
## Basic Information
- **Project Name**: Graphin
- **Description**: Graphin 取名意为 Graph Insight(图的分析洞察),是一个基于 G6 封装的 React 组件库。简单,高效,开箱即用。它的 Logo 是一个石墨烯(Graphene),意为蕴藏未来的潜力
- **Primary Language**: JavaScript
- **License**: MIT
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 22
- **Created**: 2020-08-26
- **Last Updated**: 2020-12-19
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
English | [简体中文](./README.zh-CN.md)
Graphin
[](https://www.npmjs.com/@antv/graphin)
[](http://npmjs.com/@antv/graphin)

Graphin means Graph Insight (analysis of graphs). It is a library based on [G6](https://github.com/antvis/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](https://graphin.antv.vision/zh).

Graphin use lerna to manage this repo. This repo contains the following packages:
```bash
/packages
graphin
graphin-components
graphin-studio
graphin-site
```
Please checkout the specific package:
| Package Name | Description |
| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------- |
| [@antv/graphin](https://github.com/antvis/graphin/tree/master/packages/graphin) | Core React component of Graphin |
| [@antv/graphin-components](https://github.com/antvis/graphin/tree/master/packages/graphin-components) | Graphin components |
| [@antv/graphin-site](https://github.com/antvis/graphin/tree/master/packages/graphin-site) | Graphin documentation website |
| [graphin-studio](https://github.com/antvis/graphin/tree/master/packages/graphin-studio) | A Graphin demo: generic graph analysis workbench based on Graphin |
### Graphin Quick Start
#### Install
```bash
npm run --save @antv/graphin
```
#### Usage
```jsx
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 (
);
};
const rootElement = document.getElementById('root');
ReactDOM.render(, rootElement);
```
### Graphin and G6 compatible table
| Graphin Version | G6 Version |
| --------------- | ---------- |
| before 1.0.1 | 3.1.9 |
| ^1.0.2 | ^3.2.0 |
### Develop Graphin
- Set npmClient
Set your npmClient in lerna.json, developers in China can set npmClient to [cnpm](https://www.npmjs.com/package/cnpm)
```json
// ./lerna.json
{
"packages": ["packages/*"],
"npmClient": "yarn",
"version": "0.0.0"
}
```
- Install dependencies
```bash
npm i
```
- Install dependencies for each package
```bash
npm run bootstrap
```
- Start the local compilation of graphin and graphin-components
```bash
npm run start
```
- Start the Graphin studio demo after `npm run start`
```bash
npm run studio
```
- Start the Graphin Doc site
```bash
npm run site
```
### More Info
- [Introduction to Graphin](https://graphin.antv.vision/zh/docs/manual/introduction)
- [Getting started](https://graphin.antv.vision/zh/docs/manual/getting-started)
- [API documentation](https://graphin.antv.vision/zh/docs/api/graphin)
- [GraphinStudio](https://graphin.antv.vision/zh/GraphinStudio)
### DingTalk
You can scan the QR code to join graphin's group chat
