安装
阅读时间约 1 分钟
# npmnpm install @antv/g6 --save# pnpmpnpm add @antv/g6# yarnyarn add @antv/g6
在代码中引入 G6:
import { Graph } from '@antv/g6';
访问 G6 npm 示例 查看完整示例代码。
@antv/g6
在多个 CDN 上提供:
使用 script
标签引入 G6:
<script src="https://unpkg.com/@antv/g6@5/dist/g6.min.js"></script>
访问 G6 CDN 示例 查看完整示例代码。