Add your data
Describe connections with nodes, edges, and groups.
G6Lite · WebGL Graph Engine
Visualize complex relationships with flexible layouts, responsive interactions, and efficient WebGL rendering.
Loading graph
Define nodes and edges, choose a layout, and add the interactions your application needs. Explore the graph lifecycle
Describe connections with nodes, edges, and groups.
Choose a layout that reflects the structure of your data.
Draw nodes and edges with WebGL and labels with Canvas 2D.
Let users zoom, drag, and highlight connections with incremental updates.
Load layouts only when needed, render elements in batches, and handle changes without unnecessary recomputation.
Layout algorithms load on demand, keeping the initial core bundle small.
The engine groups similar nodes and edges into WebGL draw batches for efficient rendering.
Respond to state, position, and viewport changes without recalculating the layout unnecessarily.
Update a node and its connections when its state changes
Illustration · Each change follows its own update pathActual bundle size and interaction performance vary with your build, data, and device.Explore performance testing
Explore networks, hierarchies, mind maps, and fishbone diagrams, each with a live demo and source code.
Add G6Lite to your web app, then tailor layouts, interactions, and styles to your use case. Update the graph as your data changes.
Read the quick startimport { Graph } from '@antv/g6-lite';
const graph = new Graph({
container: 'graph',
data: {
nodes: [{ id: 'a' }, { id: 'b' }, { id: 'c' }],
edges: [
{ source: 'a', target: 'b' },
{ source: 'a', target: 'c' },
],
},
layout: { type: 'circular', radius: 140 },
behaviors: ['zoom-canvas', 'drag-canvas', 'drag-node', 'hover-highlight'],
});
await graph.render();Graph manages data, layouts, and interactions. WebGL renders nodes and edges, while Canvas 2D draws labels, icons, and group boundaries. A shared viewport and scheduler keep the layers aligned.
Explore the full architectureNodes, edges, groups, and states
Load algorithms and compute positions
Canvas events, behaviors, and picking
Schedule updates by change type
Labels and icons
Nodes and edges · On-demand picking
Combo group boundaries
Get your first graph on screen with the quick-start guide, or explore the source on GitHub.