# 氣泡圖

圖片僅供參考,此點圖會浮動

### 預覽圖 --- #### [![氣泡圖.png](https://book.gosu.bar/uploads/images/gallery/2019-12/scaled-1680-/gpgc3kbeGTaRRHRY-%E6%B0%A3%E6%B3%A1%E5%9C%96.png)](https://book.gosu.bar/uploads/images/gallery/2019-12/gpgc3kbeGTaRRHRY-%E6%B0%A3%E6%B3%A1%E5%9C%96.png) ### 設定值 --- - #### 資料源 - [AntV](https://g2.antv.vision/zh/examples/point/scatter#bubble) ``` https://g2.antv.vision/zh/examples/data/bubble.json ( 資料來源:AntV ) 格式: [ {continent: "Americas",Country: "Argentina",LifeExpectancy: 75.32,GDP: 12779.37964,Population: 40301927,}, {continent: "Americas",Country: "Brazil",LifeExpectancy: 72.39,GDP: 9065.800825,Population: 190010647,}, ...... ] ``` - #### 內距 ``` 40, 40, 60, 60 ``` - #### 比例尺 Scale ##### GDP(X軸)
列表設定值
欄位GDP
類型linear
優化數據範圍開啟
最小值0
格式化函數``` function formatter(value) {

return (value / 1000).toFixed(0) + 'k';

} ```
- #### 圖 Geom ##### 點圖(point)
列表設定值
欄位GDP\*LifeExpectancy
類型點圖
顏色欄位continent
形狀circle
大小欄位Population
大小參數4,65
調整欄位擾動 | Jitter
- #### 圖示 Legend
列表設定值
啟用開啟
欄位Population
位置
排版水平
水平偏移量140
水平間距80