@antv/g6
A Graph Visualization Framework in JavaScript
Last updated 8 hours ago by kopiluwaky .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @antv/g6 
SYNC missed versions from official npm registry.

G6: A Graph Visualization Framework in TypeScript.

travis-ci codecov typescript MIT npm package NPM downloads Percentage of issues still open

中文 README

What is G6

G6 is a graph visualization engine, which provides a set of basic mechanisms, including rendering, layout, analysis, interaction, animation, and other auxiliary tools. G6 aims to simplify the relationships, and help people to obtain the insight of relational data.

Developers are able to build graph visualization analysis applications or graph visualization modeling applications easily.

Powerful Animation and Interactions

Powerful Layouts

Features

  • Abundant Built-in Items: Nodes and edges with free configurations;
  • Steerable Interactions: More than 10 basic interaction behaviors ;
  • Powerful Layout: More than 10 layout algorithms;
  • Convenient Components: Outstanding ability and performance;
  • Friendly User Experience: Complete documents for different levels of user requirements. TypeScript supported.

G6 concentrates on the principle of 'good by default'. In addition, the custom mechanism of the item, interation behavior, and layout satisfies the customazation requirements.

Abundant Built-in Items

Installation

$ npm install @antv/g6

Usage

import G6 from '@antv/g6';

const data = {
  nodes: [
    {
      id: 'node1',
      label: 'Circle1',
      x: 150,
      y: 150,
    },
    {
      id: 'node2',
      label: 'Circle2',
      x: 400,
      y: 150,
    },
  ],
  edges: [
    {
      source: 'node1',
      target: 'node2',
    },
  ],
};

const graph = new G6.Graph({
  container: 'container',
  width: 500,
  height: 500,
  defaultNode: {
    type: 'circle',
    size: [100],
    color: '#5B8FF9',
    style: {
      fill: '#9EC9FF',
      lineWidth: 3,
    },
    labelCfg: {
      style: {
        fill: '#fff',
        fontSize: 20,
      },
    },
  },
  defaultEdge: {
    style: {
      stroke: '#e2e2e2',
    },
  },
});

graph.data(data);
graph.render();

Edit compassionate-lalande-5lxm7

For more information of the usage, please refer to Getting Started.

Development

$ npm install

# run test case
$ npm test

# run test case in watch mode
npm test -- --watch ./tests/unit/algorithm/find-path-spec
DEBUG_MODE=1 npm test -- --watch ./tests/unit/algorithm/find-path-spec

# build watching file changes and run demos
$ npm run demos

Documents

G6 Communication Group

Users are welcome to join the G6 Communication Group or G6 Communication Group-2 (They are DingTalk groups). We also welcome the github issues. The Group is full, join Group-2 instead.

How to Contribute

Please let us know what you are you going to help. Do check out issues for bug reports or suggestions first.

To become a contributor, please follow our contributing guide.

License

MIT license.

Current Tags

  • 4.1.0-beta.2                                ...           beta (12 days ago)
  • 4.1.3                                ...           latest (8 hours ago)

287 Versions

  • 4.1.3                                ...           8 hours ago
  • 4.1.2                                ...           8 hours ago
  • 4.1.1                                ...           11 days ago
  • 4.1.0                                ...           12 days ago
  • 4.1.0-beta.2                                ...           12 days ago
  • 4.1.0-beta.1                                ...           19 days ago
  • 4.0.4                                ...           19 days ago
  • 4.1.0-beta.0 [deprecated]           ...           19 days ago
  • 4.0.3                                ...           2 months ago
  • 4.0.2                                ...           2 months ago
  • 4.0.1                                ...           2 months ago
  • 4.0.0                                ...           2 months ago
  • 4.0.0-beta.0                                ...           2 months ago
  • 3.8.5                                ...           2 months ago
  • 3.8.4                                ...           2 months ago
  • 3.8.3                                ...           3 months ago
  • 3.8.2                                ...           3 months ago
  • 3.8.2-beta.0                                ...           3 months ago
  • 3.8.1                                ...           3 months ago
  • 3.8.0                                ...           4 months ago
  • 3.7.3                                ...           4 months ago
  • 3.7.2                                ...           4 months ago
  • 3.7.1                                ...           5 months ago
  • 3.7.0                                ...           5 months ago
  • 3.6.2                                ...           5 months ago
  • 3.6.1-beta                                ...           5 months ago
  • 3.6.1                                ...           5 months ago
  • 3.6.0                                ...           6 months ago
  • 3.5.12                                ...           6 months ago
  • 3.5.11                                ...           6 months ago
  • 3.5.10                                ...           6 months ago
  • 3.5.9                                ...           7 months ago
  • 3.5.8                                ...           7 months ago
  • 3.5.7                                ...           7 months ago
  • 3.5.6                                ...           7 months ago
  • 3.5.5                                ...           7 months ago
  • 3.5.4                                ...           7 months ago
  • 3.5.3                                ...           7 months ago
  • 3.5.2                                ...           7 months ago
  • 3.5.1                                ...           8 months ago
  • 3.5.0                                ...           8 months ago
  • 3.4.10                                ...           8 months ago
  • 3.4.9                                ...           8 months ago
  • 3.4.8                                ...           9 months ago
  • 3.4.7                                ...           9 months ago
  • 3.4.6                                ...           9 months ago
  • 3.4.5                                ...           9 months ago
  • 3.4.4                                ...           10 months ago
  • 3.4.3                                ...           10 months ago
  • 3.4.2                                ...           10 months ago
  • 3.4.1                                ...           10 months ago
  • 3.4.0                                ...           10 months ago
  • 3.3.7                                ...           10 months ago
  • 3.3.6                                ...           a year ago
  • 3.3.5                                ...           a year ago
  • 3.3.4                                ...           a year ago
  • 3.3.3                                ...           a year ago
  • 3.3.2                                ...           a year ago
  • 3.3.1                                ...           a year ago
  • 3.3.0                                ...           a year ago
  • 3.3.0-beta.7                                ...           a year ago
  • 3.3.0-beta.6                                ...           a year ago
  • 3.2.10                                ...           a year ago
  • 3.3.0-beta.5                                ...           a year ago
  • 3.3.0-beta.4                                ...           a year ago
  • 3.3.0-beta.3                                ...           a year ago
  • 3.3.0-beta.2                                ...           a year ago
  • 3.3.0-beta                                ...           a year ago
  • 3.2.9                                ...           a year ago
  • 3.2.8                                ...           a year ago
  • 3.2.7                                ...           a year ago
  • 3.2.6                                ...           a year ago
  • 3.2.5                                ...           a year ago
  • 3.2.4                                ...           a year ago
  • 3.2.3                                ...           a year ago
  • 3.2.2                                ...           a year ago
  • 3.2.1                                ...           a year ago
  • 3.2.0                                ...           a year ago
  • 3.1.10                                ...           a year ago
  • 3.1.9                                ...           a year ago
  • 3.1.8                                ...           a year ago
  • 3.1.7                                ...           a year ago
  • 3.1.6                                ...           a year ago
  • 3.1.5                                ...           a year ago
  • 3.1.4-beta.1                                ...           a year ago
  • 3.1.3                                ...           a year ago
  • 3.1.2                                ...           a year ago
  • 3.1.1                                ...           a year ago
  • 3.1.0                                ...           a year ago
  • 3.0.7-beta.1                                ...           a year ago
  • 3.0.6                                ...           a year ago
  • 3.0.5                                ...           a year ago
  • 3.0.5-beta.12                                ...           a year ago
  • 3.0.5-beta.11                                ...           a year ago
  • 3.0.5-beta.10                                ...           a year ago
  • 3.0.5-beta.9                                ...           a year ago
  • 3.0.5-beta.8                                ...           a year ago
  • 3.0.5-beta.7                                ...           a year ago
  • 3.0.5-beta.6                                ...           2 years ago
  • 3.0.5-beta.5                                ...           2 years ago
  • 3.0.5-beta.4                                ...           2 years ago
  • 3.0.5-beta.3                                ...           2 years ago
  • 3.0.5-beta.2                                ...           2 years ago
  • 3.0.5-beta.1                                ...           2 years ago
  • 3.0.4                                ...           2 years ago
  • 3.0.4-beta.2                                ...           2 years ago
  • 3.0.4-beta.1                                ...           2 years ago
  • 3.0.3                                ...           2 years ago
  • 3.0.2                                ...           2 years ago
  • 3.0.1                                ...           2 years ago
  • 3.0.0                                ...           2 years ago
  • 3.0.0-rc.4                                ...           2 years ago
  • 3.0.0-rc.3                                ...           2 years ago
  • 3.0.0-rc.2                                ...           2 years ago
  • 3.0.0-rc.1                                ...           2 years ago
  • 3.0.0-beta.16                                ...           2 years ago
  • 3.0.0-beta.15                                ...           2 years ago
  • 3.0.0-beta.14                                ...           2 years ago
  • 3.0.0-beta.13                                ...           2 years ago
  • 3.0.0-beta.12                                ...           2 years ago
  • 3.0.0-beta.11                                ...           2 years ago
  • 3.0.0-beta.10                                ...           2 years ago
  • 3.0.0-beta.9                                ...           2 years ago
  • 3.0.0-beta.8                                ...           2 years ago
  • 3.0.0-beta.7                                ...           2 years ago
  • 3.0.0-beta.6                                ...           2 years ago
  • 3.0.0-beta.5                                ...           2 years ago
  • 3.0.0-beta.4                                ...           2 years ago
  • 3.0.0-beta.3                                ...           2 years ago
  • 3.0.0-beta.2                                ...           2 years ago
  • 3.0.0-beta.1                                ...           2 years ago
  • 2.2.6                                ...           2 years ago
  • 2.2.5                                ...           2 years ago
  • 2.2.4                                ...           2 years ago
  • 2.2.3                                ...           2 years ago
  • 2.2.2                                ...           2 years ago
  • 2.2.1                                ...           2 years ago
  • 2.2.0                                ...           2 years ago
  • 2.2.0-beta.14                                ...           2 years ago
  • 2.2.0-beta.13                                ...           2 years ago
  • 2.2.0-beta.12                                ...           2 years ago
  • 2.2.0-beta.11                                ...           2 years ago
  • 2.2.0-beta.10                                ...           2 years ago
  • 2.2.0-beta.9                                ...           2 years ago
  • 2.2.0-beta.8                                ...           2 years ago
  • 2.2.0-beta.7                                ...           2 years ago
  • 2.2.0-beta.6                                ...           2 years ago
  • 2.2.0-beta.5                                ...           2 years ago
  • 2.2.0-beta.4                                ...           2 years ago
  • 2.2.0-beta.3                                ...           2 years ago
  • 2.2.0-beta.2                                ...           2 years ago
  • 2.2.0-beta.1                                ...           2 years ago
  • 2.2.0-beta                                ...           2 years ago
  • 2.1.5                                ...           2 years ago
  • 2.1.4                                ...           2 years ago
  • 2.1.4-beta.3                                ...           2 years ago
  • 2.1.4-beta.2                                ...           2 years ago
  • 2.1.4-beta.1                                ...           2 years ago
  • 2.1.4-beta                                ...           2 years ago
  • 2.1.3                                ...           2 years ago
  • 2.1.3-beta.1                                ...           2 years ago
  • 2.1.3-beta                                ...           2 years ago
  • 2.1.2                                ...           2 years ago
  • 2.1.2-beta                                ...           2 years ago
  • 2.1.1                                ...           2 years ago
  • 2.1.1-beta                                ...           2 years ago
  • 2.1.0                                ...           2 years ago
  • 2.1.0-beta.21                                ...           2 years ago
  • 2.1.0-beta.20                                ...           2 years ago
  • 2.1.0-beta.19                                ...           2 years ago
  • 2.1.0-beta.18                                ...           2 years ago
  • 2.1.0-beta.17                                ...           2 years ago
  • 2.1.0-beta.16                                ...           2 years ago
  • 2.1.0-beta.15                                ...           2 years ago
  • 2.1.0-beta.14                                ...           2 years ago
  • 2.1.0-beta.13                                ...           2 years ago
  • 2.1.0-beta.12                                ...           2 years ago
  • 2.1.0-beta.11                                ...           2 years ago
  • 2.1.0-beta.10                                ...           2 years ago
  • 2.1.0-beta.9                                ...           2 years ago
  • 2.1.0-beta.8                                ...           2 years ago
  • 2.1.0-beta.7                                ...           2 years ago
  • 2.1.0-beta.6                                ...           2 years ago
  • 2.1.0-beta.5                                ...           2 years ago
  • 2.1.0-beta.4                                ...           2 years ago
  • 2.0.5                                ...           2 years ago
  • 2.0.5-beta.28                                ...           2 years ago
  • 2.0.5-beta.27                                ...           2 years ago
  • 2.1.0-beta.3                                ...           2 years ago
  • 2.1.0-beta.2                                ...           2 years ago
  • 2.1.0-beta.1                                ...           2 years ago
  • 2.1.0-beta                                ...           2 years ago
  • 2.0.5-beta.26                                ...           2 years ago
  • 2.0.5-beta.25                                ...           2 years ago
  • 2.0.5-beta.24                                ...           2 years ago
  • 2.0.5-beta.23                                ...           2 years ago
  • 2.0.5-beta.22                                ...           2 years ago
  • 2.0.5-beta.21                                ...           2 years ago
  • 2.0.5-beta.20                                ...           2 years ago
  • 2.0.5-beta.19                                ...           2 years ago
  • 2.0.5-beta.18                                ...           2 years ago
  • 2.0.5-beta.17                                ...           2 years ago
  • 2.0.5-beta.16                                ...           2 years ago
  • 2.0.5-beta.15                                ...           2 years ago
  • 2.0.5-beta.13                                ...           2 years ago
  • 2.0.5-beta.12                                ...           2 years ago
  • 2.0.5-beta.11                                ...           2 years ago
  • 2.0.5-beta.9                                ...           2 years ago
  • 2.0.5-beta.8                                ...           2 years ago
  • 2.0.5-beta.7                                ...           2 years ago
  • 2.0.5-beta.6                                ...           2 years ago
  • 2.0.5-beta.5                                ...           2 years ago
  • 2.0.5-beta.4                                ...           2 years ago
  • 2.0.5-beta.3                                ...           2 years ago
  • 2.0.5-beta.2                                ...           2 years ago
  • 2.0.5-beta.1                                ...           3 years ago
  • 2.0.5-beta                                ...           3 years ago
  • 2.0.4                                ...           3 years ago
  • 2.0.4-beta.4                                ...           3 years ago
  • 2.0.4-beta.3                                ...           3 years ago
  • 2.0.4-beta.2                                ...           3 years ago
  • 2.0.4-beta.1                                ...           3 years ago
  • 2.0.4-beta                                ...           3 years ago
  • 2.0.3                                ...           3 years ago
  • 2.0.3-beta.1                                ...           3 years ago
  • 2.0.3-beta                                ...           3 years ago
  • 2.0.2                                ...           3 years ago
  • 2.0.2-beta                                ...           3 years ago
  • 2.0.1                                ...           3 years ago
  • 2.0.1-beta.1                                ...           3 years ago
  • 2.0.1-beta                                ...           3 years ago
  • 2.0.0                                ...           3 years ago
  • 2.0.0-beta.88                                ...           3 years ago
  • 2.0.0-beta.888                                ...           3 years ago
  • 2.0.0-beta.87                                ...           3 years ago
  • 2.0.0-beta.86                                ...           3 years ago
  • 2.0.0-beta.85                                ...           3 years ago
  • 2.0.0-beta.84                                ...           3 years ago
  • 2.0.0-beta.83                                ...           3 years ago
  • 1.2.8                                ...           3 years ago
  • 1.2.8-beta.5                                ...           3 years ago
  • 1.2.8-beta.4                                ...           3 years ago
  • 1.2.7                                ...           3 years ago
  • 1.2.6                                ...           3 years ago
  • 1.2.5                                ...           3 years ago
  • 1.2.4                                ...           3 years ago
  • 1.2.3                                ...           3 years ago
  • 2.0.0-beta.9                                ...           3 years ago
  • 2.0.0-beta.7                                ...           3 years ago
  • 1.2.3-beta.10                                ...           3 years ago
  • 1.2.3-beta.8                                ...           3 years ago
  • 2.0.0-beta.6                                ...           3 years ago
  • 2.0.0-beta.4                                ...           3 years ago
  • 1.2.3-beta.1                                ...           3 years ago
  • 2.0.0-alpha                                ...           3 years ago
  • 1.2.3-beta                                ...           3 years ago
  • 1.2.2                                ...           3 years ago
  • 1.2.1                                ...           3 years ago
  • 1.2.1-beta.14                                ...           3 years ago
  • 1.2.1-beta.13                                ...           3 years ago
  • 1.2.1-beta.12                                ...           3 years ago
  • 1.2.1-beta.11                                ...           3 years ago
  • 1.2.1-beta.9                                ...           3 years ago
  • 1.2.1-beta.8                                ...           3 years ago
  • 1.2.1-beta.7                                ...           3 years ago
  • 1.2.1-beta.6                                ...           3 years ago
  • 1.2.1-beta.5                                ...           3 years ago
  • 1.2.1-beta.4                                ...           3 years ago
  • 1.2.1-beta.3                                ...           3 years ago
  • 1.2.1-beta.2                                ...           3 years ago
  • 1.2.1-beta.1                                ...           3 years ago
  • 1.2.1-beta                                ...           3 years ago
  • 1.2.0                                ...           3 years ago
  • 1.2.0-beta.59                                ...           3 years ago
  • 1.2.0-beta.58                                ...           3 years ago
  • 1.2.0-beta.57                                ...           3 years ago
  • 1.2.0-beta.56                                ...           3 years ago
  • 1.2.0-beta.54                                ...           3 years ago
  • 1.2.0-beta.51                                ...           3 years ago
  • 1.2.0-beta.50                                ...           3 years ago
  • 1.2.0-beta.48                                ...           3 years ago
  • 1.2.0-beta.46                                ...           3 years ago
  • 1.2.0-beta.45                                ...           3 years ago
  • 1.2.0-beta.44                                ...           3 years ago
  • 1.2.0-beta.43                                ...           3 years ago
  • 1.1.1                                ...           3 years ago
  • 1.0.0                                ...           4 years ago
Downloads
Today 84
This Week 2,264
This Month 24,870
Last Day 2,180
Last Week 10,537
Last Month 49,540
Dependencies (1)
Dev Dependencies (20)
Dependents (193)

Copyright 2014 - 2016 © taobao.org |