Introduction
What is G6
Developers are able to build graph visualization analysis applications or graph visualization modeling applications easily.
Powerful Layouts
Powerful Animation and Interactions
Features
- Excellent Perforamnce: Supports large graph visualization and interactive exploration;
- Abundant Built-in Items: Nodes and edges with free configurations;
- Steerable Interactions: More than 10 basic interaction behaviors ;
- Powerful Layouts: More than 10 layout algorithms;
- Convenient Components: Outstanding abilities and performance;
- Friendly User Experience: Complete documents for different levels of 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 customization requirements.
Abundant Built-in Items
Installation
$ npm install @antv/g6
Usage
// The source data
const data = {
// The array of nodes
nodes: [
{
id: 'node1',
x: 100,
y: 200,
},
{
id: 'node2',
x: 300,
y: 200,
},
],
// The array of edges
edges: [
// An edge links from node1 to node2
{
source: 'node1',
target: 'node2',
},
],
};
// Instantiate the Graph
const graph = new G6.Graph({
container: 'mountNode', // The container id or HTML node of the graph canvas.
// The width and the height of graph canvas
width: 800,
height: 500,
});
// Load the data
graph.data(data);
// Render the graph
graph.render();
For more information about the usage, please refer to Getting Started.
Documents
Links
Official independent product: Graphin
Graphin stands for Graph Insight. It's a toolkit based on G6 and React, that focuses on relational visual analysis. It's simple, efficient, out of the box.
- github: https://github.com/antvis/Graphin
- website: https://graphin.antv.vision
Some implementations combined with front-end libraries from the third party:
G6 Communication Group
Welcome to join the G6 Communication Group or G6 Communication Group-2 (DingTalk groups). We also welcome the github issues.