option = {
title: {
text: '2019年各省毕业人数分布',
left: 'center'
},
tooltip: {
formatter:function(params,ticket, callback){
return params.name+':'+params.value
}//数据格式化
},
geo: {
map: 'china',
roam: false,//不开启缩放和平移
zoom:1.23,//视角缩放比例
label: {
normal: {
show: true,
fontSize:'10',
//color: 'rgba(0,0,0,0.7)'
}
},
itemStyle: {
normal:{
borderColor: 'rgba(0, 0, 0, 0.2)'
},
emphasis:{
areaColor: '#F3B329',//鼠标选择区域颜色
shadowOffsetX: 0,
shadowOffsetY: 0,
shadowBlur: 20,
borderWidth: 0,
shadowColor: 'rgba(0, 0, 0, 0.5)'
}
}
},
visualMap: {
min: 0,
max: 1500,
left: 'left',
top: 'bottom',
text: ['高','低'],//取值范围的文字
inRange: {
color: ['lightskyblue', 'yellow', 'orangered']
},
show:false//图注
},
series : [
{
name: '信息量',
type: 'map',
label: {
normal: {
show: true
},
emphasis: {
show: true
}
},
geoIndex: 0,
data:dataList
}
]
};
echarts 中国地图
最新推荐文章于 2024-05-14 13:49:11 发布