geo.label.normal.formatter 这个设置在echart.min.js下有用,在echart.js就没用了
配置项如下
option = {
geo : {
map : 'china',
//鼠标缩放和平移
roam: false,
label : {
normal : {
show : true,
color : 'red',
fontSize :10,
formatter:function(params){
return params.name + '123'
}
},
emphasis : {
show : true,
textStyle : {
color : '#fff'
}
}
},
itemStyle : {
normal : {
show : true,
areaColor : 'transparent',
borderColor : '#3fdaff',
borderWidth : 2,
shadowColor : 'rgba(63, 218, 255, 0.5)',
shadowBlur : 30,
},
emphasis : {
areaColor : '#389BB7'
}
}
},
series : []
};