Skip to main content

地图

在仪表板中您可以添加各种可视化组件来展示数据,本节以地图为例为例带您快速了解创建仪表板的流程。

image

1. 数据准备

新增数据源并添加到数据集。

(1)数据源配置

数据源属性属性值
数据名中国部分省份年GDP
Web API地址https://result.eolink.com/jLwe6LL471d5112ef61d6b2ebe579a5190be3ee81164537?uri=/province-gdp
请求方法GET
JSON路径$.data[*]

JSON数据:

{
"success": true,
"code": 200,
"message": "successful",
"data": [{
"id": "1",
"province": "青海省",
"gdp": 57,
"zone":"西北"
}, {
"id": "2",
"province": "陕西省",
"gdp": 46,
"zone":"西北"
}, {
"id": "3",
"province": "辽宁省",
"gdp": 72,
"zone":"华北"
}, {
"id": "4",
"province": "浙江省",
"gdp": 63,
"zone":"华东"
},
{
"id": "5",
"province": "广东省",
"gdp": 68,
"zone":"华南"
}]
}

注意:数值型数据不要添加双引号。

数据源属性属性值
数据名广东省部分城市年GDP
Web API地址https://result.eolink.com/jLwe6LL471d5112ef61d6b2ebe579a5190be3ee81164537?uri=/city-gdp
请求方法GET
JSON路径$.data[*]

JSON数据:

{ 
"success": true,
"code": 200,
"message": "successful",
"data": [{
"id": "1",
"city": "佛山市",
"gdp":57
}, {
"id": "2",
"city": "珠海市",
"gdp":46
}, {
"id": "3",
"city": "广州市",
"gdp":72
}, {
"id": "4",
"city": "深圳市",
"gdp":63
} ]
}

注意:数值型数据不要添加双引号。

(2)数据集配置

省份数据集:

image

image

城市数据集:

image

image

2. 创建仪表板

(1)添加可视化组件

image

(2)数据绑定

选中可视化组件进行数据绑定

气泡地图

image

image

色阶地图

image

image

自定义地图

image

image

image

组合地图

image

image