"
}
},
legend: {
show:false
},
geo: {
map: 'china',
label: {
emphasis: {
show: false
}
},
roam: true,
itemStyle: {
normal: {
areaColor: '#323c48', /*中国地图颜色*/
borderColor: '#111'
},
emphasis: {
areaColor: '#2a333d'
}
}
},
series : [
{
name: 'Tooltip Test',
type: 'effectScatter',
coordinateSystem: 'geo',
data: convertData(data.sort(function (a, b) {
return b.value - a.value;
}).slice(0, 6)),
symbolSize: function (val) {
return val[2] / 10;
},
showEffectOn: 'render',
rippleEffect: {
brushType: 'stroke'
},
hoverAnimation: true,
label: {
normal: {
formatter: '{b}',
position: 'right', /*文字显示位置*/
show: true
}
},
itemStyle: {
normal: {
color: '#FFE503', /*原点颜色#FFE503,#02BCEB*/
shadowBlur: 10,
shadowColor: '#333'
}
},
zlevel: 1
},
/* {
name: '点',
type: 'scatter',
coordinateSystem: 'geo',
symbol: 'pin', //气泡
symbolSize: function(val) {
var a = (maxSize4Pin - minSize4Pin) / (max - min);
var b = minSize4Pin - a * min;
b = maxSize4Pin - a * max;
return (a * val[2] + b * 2) ;
},
itemStyle: {
borderWidth:0,
color: {
image : img,
}
},
markPoint : {
data: convertData2(data)
},
zlevel: 6,
data: convertData(data)
}*/ /*去掉蓝色气泡*/
]
};
const canvasAnimation = params => {
setTimeout(function() {
let canvas = document.querySelector('#tCanvas')
let ctx = canvas.getContext("2d")
let a = {a: 0}
TweenMax.to(a, 1, {
a: 1,
onUpdate () {
ctx.clearRect(0,0,200,80)
let s = a.a
ctx.font= 20*s + "px Georgia";
ctx.fillStyle="red";
ctx.fillRect(0,0,150*s,80*s);
ctx.strokeText(params.name,10*s,45*s)
}
})
}, 0);
}
function autoPlay(){
setInterval(function(){
}, 3000);
}
autoPlay();