Installation
Reading needs 1 minutes
# npmnpm install @antv/g6 --save# pnpmpnpm add @antv/g6# yarnyarn add @antv/g6
Import G6 in the code:
import { Graph } from '@antv/g6';
Visit G6 npm Example to view the complete example code.
@antv/g6
Available on multiple CDNs:
Import G6 using a script
tag:
<script src="https://unpkg.com/@antv/g6@5/dist/g6.min.js"></script>
Visit G6 CDN Example to view the complete example code.