Skip to content
A Graph Visualization Framework in JavaScript
TypeScript Other
Branch: master
Clone or download

Latest commit

Yanyan-Wang docs: update the shapeProperties to add types for configurations. doc…
…s: update graph.hideItem and item.hide to differ them.
Latest commit 21e68ac Apr 28, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github fix: security check file. Apr 21, 2020
.storybook chore: prettier all code Feb 14, 2020
.vscode feat: add label background Mar 25, 2020
docs docs: update the shapeProperties to add types for configurations. doc… Apr 28, 2020
examples docs: update loadTreeData demo. Apr 22, 2020
site fix: 增加群二维码 Mar 20, 2020
src fix: force layout afterlayout event Apr 28, 2020
stories fix: curveOffset for arc, quadratic, cubic edge. Apr 28, 2020
tests/unit fix: force layout afterlayout event Apr 28, 2020
.babelrc.js chore: prettier all code Feb 14, 2020
.browserslistrc fix not support ie11 Oct 28, 2019
.editorconfig refactor 2.0 Jun 5, 2018
.eslintignore Merge branch 'dev-3.3' into g6-dev-20191209 Jan 3, 2020
.eslintrc.js chore: prettier all code Feb 14, 2020
.fatherrc.js fix: update types path Jan 16, 2020
.gitignore fix: filter demos folder Apr 22, 2020
.gitlab-ci.yml chore: prettier all code Feb 14, 2020
.npmignore fix: G6 package delete public and .cache file Nov 17, 2019
.prettierignore chore: prettier all code Feb 14, 2020
.prettierrc.js chore: update scaffold Jan 2, 2020
.travis.yml fix: remove rm -rf node_modules online Mar 18, 2020
CHANGELOG.md docs: update CHANGELOG and version number Apr 28, 2020
CNAME Create CNAME Feb 11, 2020
CONTRIBUTING.md chore: prettier all code Feb 14, 2020
CONTRIBUTING.zh-CN.md chore: prettier all code Feb 14, 2020
LICENSE refactor 2.0 Jun 5, 2018
README-zh_CN.md docs: alt for img. Mar 20, 2020
README.md docs: alt for img. Mar 20, 2020
gatsby-browser.js fix: curveOffset for arc, quadratic, cubic edge. Apr 28, 2020
gatsby-config.js docs: fix the advanced docs lack of keyconcept problem and update the… Apr 20, 2020
global.d.ts chore: prettier all code Feb 14, 2020
jest.config.js chore: prettier all code Feb 14, 2020
package.json fix: force layout afterlayout event Apr 28, 2020
tsconfig.json chore: prettier all code Feb 14, 2020
webpack.config.js chore: prettier all code Feb 14, 2020
webpack.dev.config.js chore: prettier all code Feb 14, 2020

README.md

G6: A Graph Visualization Framework in TypeScript.

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: {
    shape: '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 run test-live

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

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.

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.

You can’t perform that action at this time.