Description
G6 is a graph visualisation framework in TypeScript from AntV, for drawing and analysing graphs, which are networks of nodes and edges. It provides the basic capabilities for graph work: drawing, layout, analysis, interaction, animation, themes and plugins. It ships with a wide set of built-in node, edge and combo elements that can be styled in detail, supports data callbacks, and lets you define custom elements. The engine has more than ten built-in interaction behaviours and a rich set of events for building your own interactions. It includes more than ten common graph layouts, some of which use the GPU and Rust parallel computing for speed, and layouts can be extended. Two built-in themes, light and dark, come with more than 20 community colour palettes. G6 renders with Canvas, SVG and WebGL through the G rendering engine, and it supports server-side rendering with Node.js, plus plugin packages for 3D rendering and spatial interaction on WebGL. Because it works in the React ecosystem, you can use React nodes for richer styles. It is usually installed with npm or Yarn. The ecosystem includes Ant Design Charts, a React chart library built on G2, G6, X6 and L7, and Graphin, a React wrapper for G6. The docs site has examples, a quick start and an API reference.…
Highlights
- Graph drawing, layout and analysis
- Built-in nodes, edges and combos
- More than ten interaction behaviours
- More than ten layouts, some GPU accelerated
- Canvas, SVG and WebGL rendering
- Themes with over 20 colour palettes
Ratings & Reviews
No ratings yet
Be the first to rate G6.
People also visit
Project Graph
A node-based visual tool for organizing thoughts and notes in a non-linear way
G6 FAQ
What is G6?
A graph visualisation framework in TypeScript for drawing, laying out, analysing and interacting with networks of nodes and edges.
How do I install it?
Usually through npm or Yarn, and the Quick Start section shows how to import the Graph object.
Which layouts are available?
More than ten common graph layouts, and you can build custom layouts. Some use GPU and Rust parallel computing.
Can I render on the server?
Yes. G6 supports server-side rendering with Node.js.
Does it work with React?
Yes. It supports React nodes for richer styling, and the ecosystem includes the React wrapper Graphin.
What rendering options are there?
Canvas, SVG and WebGL, through the G rendering engine, plus 3D plugins on WebGL.
What are the best G6 alternatives?
Popular alternatives to G6 include Project Graph, X-Flowchart-Vue and Gantt. See all G6 alternatives








