AntV官網(wǎng) AntV官網(wǎng)
查看文檔的時候強烈建議使用國內(nèi)鏡像;否則會非常的慢。
gitee地址:gitee地址

強烈建議使用國內(nèi)鏡像
1. AntV-G2的使用
- 這里是使用
vue-cli創(chuàng)建了一個vue項目:
vue create learn-antV
-
AntV-G2-Plot的使用:快速上手
npm install @antv/g2plot --save
import { Line } from '@antv/g2plot';
1.1 實現(xiàn)簡單的折線圖案例

簡單的折線圖案例
2. AntV-G6 的使用
參考文檔:參考文檔
- 安裝
AntV-G6依賴:
npm install --save @antv/g6
- 按需導(dǎo)入依賴:
import G6 from '@antv/g6';
2.1 實現(xiàn)案例

使用AntV-G6實現(xiàn)簡單案例
3. AntV-L7 的使用
參考文檔:參考文檔
- 安裝AntV-L7的運行時依賴:
// L7 依賴
npm install --save @antv/l7
// 第三方底圖依賴
npm install --save @antv/l7-maps;
- 導(dǎo)入依賴模塊進行使用:
import { Scene, PointLayer } from '@antv/l7';
import { GaodeMap } from '@antv/l7-maps';
3.1 實現(xiàn)簡單案例
注意在創(chuàng)建高德地圖的時候需要輸入自己創(chuàng)建的一個token

自己高德地圖開發(fā)者賬號的token

AntV-L7案例