}
},
},
真题解析、进阶学习笔记、最新讲解视频、实战项目源码、学习路线大纲
详情关注公中号【编程进阶路】
{
name: ‘天燃气’,
type: ‘scatter’,
coordinateSystem: ‘geo’,
data: [{ //庐阳区
name: ‘首都’,
value: [116.24, 41.55, 100],
type: ‘ranqi’,
}, ],
symbol: iconRQ,
symbolSize: 20,
label: {
normal: {
show: false,
},
emphasis: {
show: false
}
},
},
// 区域散点图
{
type: 'effectScatter',
coordinateSystem: 'geo',
symbolSize: 5,
rippleEffect: { //坐标点动画
period: 3,
scale: 5,
brushType: 'fill'
},
label: {
normal: {
show: true,
position: 'right',
formatter: '{b}',
color: '#b3e2f2',
fontWeight: "bold",
fontSize: 18
}
},
data: [{
name: "深圳",
value: [114.271522, 22.753644]
},
{
name: "南京",
value: [118.78, 32.04]
},
{
name: "重庆",
value: [106.54, 29.59]
},
{
name: "北京",
value: [116.24, 39.55, 100]
},
{
name: "荆州",
value: [113.41, 29.59]
}
],
itemStyle: { //坐标点颜色
normal: {
show: true,
color: '#fff',
shadowBlur: 10,
shadowColor: '#fff'
},
emphasis: {
areaColor: '#f00'
}
},
},
// 线 和 点
{
type: 'lines',
zlevel: 1, //设置这个才会有轨迹线的小尾巴
effect: {
show: true,
period: 10,
trailLength: 0.7,
color: '#fff',
symbol: 'arrow',
symbolSize: 6
},
lineStyle: {
normal: {
color: '#fff',
width: 1.5,
curveness: 0.2,
shadowColor: '#fff',
}
},
data: [{
fromName: 1,
toName: 1,
coords: [
[114.271522, 22.753644],
[116.24, 39.55],
]
},
{
fromName: 1,
toName: 1,
coords: [
[114.271522, 22.753644],
[118.78, 32.04],
]
最后
最后写上我自己一直喜欢的一句名言:
世界上只有一种真正的英雄主义就是在认清生活真相之后仍然热爱它