# Graphin **Repository Path**: simple2049/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-01-09 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ![](https://camo.githubusercontent.com/2b77a87432d47fb4f20f5b0bfbdcb2db15775dab/68747470733a2f2f67772e616c697061796f626a656374732e636f6d2f6d646e2f726d735f3030656463622f616674732f696d672f412a456b4a6d52726d754a41674141414141414141414141426b4152516e4151) [中文文档](./README.cn-ZH.md) 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](https://gw.alipayobjects.com/mdn/rms_00edcb/afts/img/A*N-5PT6UO9LAAAAAAAAAAAABkARQnAQ) 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); ``` ### 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)