配置项如下
var dataList =[
[{///缅甸--云南
coords: [
[1856, 427],
[1862, 535],
[1867,577],
[1875, 627],
[1878, 652],
]
}],
[{
coords: [///缅甸受入
[2022, 679],
[1999, 660],
[1981, 641],
[1968, 620],
[1939, 579],
[1926, 554],
[1902, 497],
[1893,468],
[1884, 443],
[1874, 409],
]
}],
[{///老挝受入
coords: [
[2096, 666],
[2117, 658],
[2136, 647],
[2154, 624],
[2168, 607],
[2181, 584],
[2191, 555],
[2199,532],
[2207, 501],
[2215, 463],
[2221, 432],
[2224, 417],
]
}],
[{///越南受入
coords: [
[2107, 682],
[2199, 693],
[2278, 695],
[2337,686],
[2419, 664],
[2499, 618],
[2527, 584],
[2556 ,554],
]
}],
[{///重庆受入
coords: [
[2766, 1361],
[2749, 1415],
[2736, 1444],
[2725,1471],
[2709, 1499],
[2697, 1526],
[2671, 1561],
[2646 ,1591],
[2615 ,1616],
]
}],
[{///湖南受入
coords: [
[2842, 1409],
[2894, 1449],
[2944, 1476],
[2987,1492],
[3032, 1508],
[3072, 1511],
[3139, 1510],
[3221 ,1498],
]
}],
[{///三峡送出
coords: [
[3246, 1642],
[3280, 1624],
[3317, 1590],
[3329,1572],
[3359, 1547],
[3382, 1373],
[3391, 1358],
[3404 ,1338],
[3449 ,1263],
[3483 ,1226],
[3513 ,1203],
[3596 ,1174],
]
}],
[{///鲤鱼江送出
coords: [
[3598, 1419],
[3670, 1386],
[3704, 1370],
[3721,1356],
[3758, 1307],
[3814, 1243],
]
}],
[{///澳门受入
coords: [
[3669, 990],
[3821, 1000],
[3889, 995],
]
}],
[{///香港受入
coords: [
[3773, 1022],
[3829, 1041],
[3898, 1042],
[3927, 1035],
]
}],
[{///深圳受入
coords: [
[3985, 1057],
[3984, 1080],
[3982, 1094],
[3975, 1113],
[3947, 1124],
[3932, 1123],
]
}],
]
var dataList1=[///蓝色循环
[{///云南--广西
coords: [
[2239, 929],
[2368, 939],
[2475, 944],
[2556,942],
[2708, 939],
[2761, 933],
[2926, 902],
[2995 ,880],
[3026 ,856],
]
}],
[{///云南--海南
coords: [
[2239, 954],
[2282, 974],
[2400, 1000],
[2578,985],
[3296, 874],
[3332, 859],
[3377, 832],
[3419 ,804],
[3451 ,767],
[3510 ,645],
]
}],
[{///云南--某地
coords: [
[2200, 979],
[2270, 1012],
[2329, 1028],
[2420,1040],
[2466, 1037],
[3172, 958],
[3344, 934],
[3503 ,930],
[3658 ,955],
]
}],
[{///天一送出
coords: [
[2511, 1202],
[2550, 1156],
[2640, 1078],
[2746,1040],
[2920, 1012],
[3075, 1001],
[3198, 989],
[3340 ,973],
[3500 ,967],
[3707 ,1023],
[3866 ,1091],
]
}],
[{///龙滩送出
coords: [
[2906, 1092],
[2969, 1072],
[3060, 1058],
[3203,1038],
[3312, 1027],
[3408, 1019],
[3503, 1023],
[3642 ,1051],
]
}],
[{///天二送出
coords: [
[2630, 1217],
[2789, 1262],
[2864, 1264],
[2919,1257],
[3052, 1207],
[3127, 1153],
[3154, 1138],
[3239 ,1107],
[3317 ,1093],
[3433 ,1088],
[3625 ,1108],
[3841 ,1182],
]
}],
[{///贵州送出
coords: [
[2887, 1344],
[2925, 1361],
[2973, 1359],
[3054,1332],
[3215, 1245],
[3342, 1162],
[3383, 1152],
[3548, 1143],
[3810 ,1219],
]
}],
]
var series=[]
dataList.forEach((itme,index)=>{
series.push( {
name: "",
type: "lines",
coordinateSystem: "cartesian2d",
z: 1,
polyline: true, //开启多段线,默认false
effect: {
show: true,
smooth: false,
trailLength: 0,
symbol: "arrow",
symbolSize: [10, 20],
constantSpeed: 50
},
lineStyle: {
width: 2,
color: "#d7a64a",
type: "dashed",
curveness: 0
},
data: dataList[index]
})
})
dataList1.forEach((itme,index)=>{
series.push( {
name: "",
type: "lines",
coordinateSystem: "cartesian2d",
z: 1,
polyline: true, //开启多段线,默认false
effect: {
show: true,
smooth: false,
trailLength: 0,
symbol: "arrow",
symbolSize: [10, 20],
constantSpeed: 50
},
lineStyle: {
width: 2,
color: "#1f8bd4",
type: "dashed",
curveness: 0
},
data: dataList1[index]
})
})
option = {
backgroundColor: '#111',
legend: [],
xAxis: {
show: false,
type: "value",
max: 5760,
min: 0
},
yAxis: {
show: false,
type: "value",
max: 2100,
min: 0
},
series:series,
};