GithubHelp home page GithubHelp logo

gx9702 / graphin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from antvis/graphin

0.0 1.0 0.0 57.31 MB

A React toolkit for graph analysis based on G6

Home Page: https://graphin.antv.vision

License: MIT License

JavaScript 16.97% TypeScript 78.79% CSS 3.97% HTML 0.26%

graphin's Introduction

English | 简体中文

Graphin

Version NPM downloads Latest commit

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

Graphin and G6 compatible table

Graphin Version G6 Version graphin-components antd Version
before 1.0.1 3.1.9 3.24.3
^1.0.2 ^3.2.0 3.24.3
^1.0.5 ^3.3.0 3.24.3
^1.1.0 ^3.4.0 4.0.3

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

DingTalk

You can scan the QR code to join graphin's group chat

DingTalk

graphin's People

Contributors

pomelo-nwu avatar zxc0328 avatar budlion avatar afc163 avatar jiangjun1994 avatar anderson-liu avatar nylqd avatar yanyan-wang avatar zhouyangye avatar antonlin1 avatar totogo avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.