Gathering detailed insights and metrics for @antv/g6-element
Gathering detailed insights and metrics for @antv/g6-element
Gathering detailed insights and metrics for @antv/g6-element
Gathering detailed insights and metrics for @antv/g6-element
♾ A Graph Visualization Framework in JavaScript.
npm install @antv/g6-element
Typescript
Module System
Node Version
NPM Version
TypeScript (86.03%)
JavaScript (13.77%)
HTML (0.17%)
Shell (0.02%)
Less (0.01%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
11,591 Stars
5,557 Commits
1,471 Forks
213 Watchers
8 Branches
224 Contributors
Updated on Jul 13, 2025
Latest Version
0.8.25
Package Id
@antv/g6-element@0.8.25
Unpacked Size
263.93 kB
Size
33.31 kB
File Count
63
NPM Version
10.8.2
Node Version
20.17.0
Published on
Apr 11, 2025
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
4
1
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
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
1$ npm install @antv/g6
1import G6 from '@antv/g6'; 2 3const data = { 4 nodes: [ 5 { 6 id: 'node1', 7 label: 'Circle1', 8 x: 150, 9 y: 150, 10 }, 11 { 12 id: 'node2', 13 label: 'Circle2', 14 x: 400, 15 y: 150, 16 }, 17 ], 18 edges: [ 19 { 20 source: 'node1', 21 target: 'node2', 22 }, 23 ], 24}; 25 26const graph = new G6.Graph({ 27 container: 'container', 28 width: 500, 29 height: 500, 30 defaultNode: { 31 type: 'circle', 32 size: [100], 33 color: '#5B8FF9', 34 style: { 35 fill: '#9EC9FF', 36 lineWidth: 3, 37 }, 38 labelCfg: { 39 style: { 40 fill: '#fff', 41 fontSize: 20, 42 }, 43 }, 44 }, 45 defaultEdge: { 46 style: { 47 stroke: '#e2e2e2', 48 }, 49 }, 50}); 51 52graph.data(data); 53graph.render();
For more information of the usage, please refer to Getting Started.
1$ npm install 2 3# run bootstrap to link the packages 4$ npm run bootstrap 5 6# build all the packages 7$ npm run build:all 8 9# run test case 10$ npm run test 11 12# run lint 13$ npm run lint 14 15# run test case in watch mode 16npm test -- --watch ./tests/unit/algorithm/find-path-spec 17DEBUG_MODE=1 npm test -- --watch ./tests/unit/algorithm/find-path-spec
Welcome to join the G6 Communication Group or G6 Communication Group-2 (DingTalk groups). We also welcome the github issues.
Please let us know what you are you going to help. Do check out issues for bug reports or suggestions first.
No vulnerabilities found.
Reason
30 commit(s) and 2 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
no binaries found in the repo
Reason
Found 26/30 approved changesets -- score normalized to 8
Reason
security policy file detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More