Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

g6-for-react

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

g6-for-react

data visualization library based G6 and React

latest
Source
npmnpm
Version
0.1.4
Version published
Maintainers
1
Created
Source

NPM PackageNPM Downloads

g6-for-react

基于蚂蚁金服关系数据可视化引擎g6的react版封装

安装

npm install g6-for-react // or
yarn add g6-for-react

dev build

$ git clone https://github.com/hihl/g6-for-react.git
$ cd g6-for-react
$ npm install
$ npm run build

dev demo

$ sudo vi /etc/hosts
// 加入 127.0.0.1 localhost
$ npm run demo
// 浏览器打开 http://localhost:3510/

快速开始

import { Graph } from 'g6-for-react';

const data = {
  nodes: [{
    id: 'node1',
    x: 100,
    y: 200,
    label: '节点1'
  }, {
    id: 'node2',
    x: 300,
    y: 200,
    label: '节点2'
  }],
  edges: [{
    target: 'node2',
    source: 'node1'
  }]
};

<Graph fitView="cc" animate={true} height={window.innerHeight} data={data}></Graph>

文档

教程

  • 图表介绍

API

Keywords

visualization

FAQs

Package last updated on 27 Aug 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts