|
@@ -148,14 +148,15 @@ const pieOption = {
|
|
|
},
|
|
|
legend: {
|
|
|
orient: 'vertical',
|
|
|
+ top: '20%'
|
|
|
},
|
|
|
series: [
|
|
|
{
|
|
|
right: '0%',
|
|
|
name: '',
|
|
|
type: 'pie',
|
|
|
- radius: ["85%", "100%"],
|
|
|
- center: ["70%", "50%"],
|
|
|
+ radius: ["70%", "90%"],
|
|
|
+ center: ["60%", "50%"],
|
|
|
hoverAnimation: false,
|
|
|
label: {
|
|
|
show: false,
|
|
@@ -168,8 +169,8 @@ const pieOption = {
|
|
|
name: "",
|
|
|
type: "pie",
|
|
|
hoverAnimation: false,
|
|
|
- radius: ["65%", "85%"],
|
|
|
- center: ["70%", "50%"],
|
|
|
+ radius: ["60%", "80%"],
|
|
|
+ center: ["60%", "50%"],
|
|
|
avoidLabelOverlap: false,
|
|
|
label: {
|
|
|
show: false,
|
|
@@ -184,8 +185,8 @@ const pieOption = {
|
|
|
name: "",
|
|
|
type: "pie",
|
|
|
// silent:true,
|
|
|
- center: ["70%", "50%"],
|
|
|
- radius: ["45%", "65%"],
|
|
|
+ center: ["60%", "50%"],
|
|
|
+ radius: ["65%", "50%"],
|
|
|
avoidLabelOverlap: false,
|
|
|
label: {
|
|
|
show: false,
|
|
@@ -201,14 +202,14 @@ const pieOption = {
|
|
|
name: "总量",
|
|
|
type: "pie",
|
|
|
// silent:true,
|
|
|
- center: ["70%", "50%"],
|
|
|
+ center: ["60%", "50%"],
|
|
|
radius: ["0%", "40%"],
|
|
|
avoidLabelOverlap: false,
|
|
|
label: {
|
|
|
show: false,
|
|
|
},
|
|
|
label: {
|
|
|
- formatter: `{b}\n{c}`,
|
|
|
+ formatter: `{c}\n{b}`,
|
|
|
show: true,
|
|
|
position: 'center'
|
|
|
},
|
|
@@ -221,44 +222,26 @@ const pieOption = {
|
|
|
]
|
|
|
}
|
|
|
|
|
|
-function randomData () {
|
|
|
- return Math.round(Math.random() * 1000)
|
|
|
-}
|
|
|
+
|
|
|
const mapOption = {
|
|
|
tooltip: {
|
|
|
trigger: 'item',
|
|
|
- // formatter: function (item) {
|
|
|
- // if (item.data && item.data.index) {
|
|
|
- // const html = `<div>
|
|
|
- // <div>机场三字码 ${item.data.index}</div>
|
|
|
- // <div>${item.data.name} ${item.data.value}</div>
|
|
|
- // </div>`
|
|
|
- // return html
|
|
|
- // } else {
|
|
|
- // return `<div style="width:400px">
|
|
|
- // <div>${item.data.airportname}</div>
|
|
|
- // <div style='display:flex'><div style='margin-right:20px'>机场三字码:${item.data.airport}</div><div>机场简称:${item.data.airportname}</div></div>
|
|
|
- // <div style='display:flex'><div style='margin-right:20px'>国内总量:${item.data.dombag}</div><div>国际总量:${item.data.intbag}</div></div>
|
|
|
- // <div style='display:flex'><div style='margin-right:50px'>离港总量:${item.data.outbag}</div><div style='margin-right:50px'>进港总量:${item.data.inbag}</div><div>中转总量:${item.data.transfer}</div></div>
|
|
|
- // <div style='display:flex'><div style='margin-right:50px'>正常行李量:${item.data.normal}</div><div style='margin-right:50px'>特殊行李量:${item.data.special}</div><div>异常行李量:${item.data.exception}</div></div>
|
|
|
- // </div>`
|
|
|
- // }
|
|
|
- // },
|
|
|
- },
|
|
|
- legend: {
|
|
|
- orient: 'vertical',
|
|
|
- left: '6%',
|
|
|
- top: '8%',
|
|
|
- itemWidth: 10,
|
|
|
- itemHeight: 10,
|
|
|
- textStyle: {
|
|
|
- color: '#888'
|
|
|
+ formatter: function (item) {
|
|
|
+ if (item.data) {
|
|
|
+ const { airportname, airport, dom_bag, int_bag, out_bag, in_bag, transfer_bag, normal_bag, special_bag, notnormal_bag } = item.data
|
|
|
+ return `<div style="width:400px">
|
|
|
+ <div style="font-size:18px;font-weight:600;">${airportname}</div>
|
|
|
+ <div style='display:flex;margin-top:10px;'><div style='margin-right:20px'>机场三字码:${airport}</div><div>机场简称:${airportname}</div></div>
|
|
|
+ <div style='display:flex;margin-top:10px;'><div style='margin-right:20px'>国内总量:${dom_bag}</div><div>国际总量:${int_bag}</div></div>
|
|
|
+ <div style='display:flex;margin-top:10px;'><div style='margin-right:50px'>离港总量:${out_bag}</div><div style='margin-right:50px'>进港总量:${in_bag}</div><div>中转总量:${transfer_bag}</div></div>
|
|
|
+ <div style='display:flex;margin-top:10px;'><div style='margin-right:50px'>正常行李量:${normal_bag}</div><div style='margin-right:50px'>特殊行李量:${special_bag}</div><div>异常行李量:${notnormal_bag}</div></div>
|
|
|
+ </div>`
|
|
|
+ }
|
|
|
},
|
|
|
- data: ['已建', '在建', '未建']
|
|
|
},
|
|
|
visualMap: {
|
|
|
min: 0,
|
|
|
- max: 2500,
|
|
|
+ max: 25000,
|
|
|
left: 'left',
|
|
|
top: 'bottom',
|
|
|
text: ['高', '低'],
|
|
@@ -280,101 +263,8 @@ const mapOption = {
|
|
|
show: true
|
|
|
}
|
|
|
},
|
|
|
- data: [
|
|
|
- { name: '北京', value: randomData() },
|
|
|
- { name: '天津', value: randomData() },
|
|
|
- { name: '上海', value: randomData() },
|
|
|
- { name: '重庆', value: randomData() },
|
|
|
- { name: '河北', value: randomData() },
|
|
|
- { name: '河南', value: randomData() },
|
|
|
- { name: '云南', value: randomData() },
|
|
|
- { name: '辽宁', value: randomData() },
|
|
|
- { name: '黑龙江', value: randomData() },
|
|
|
- { name: '湖南', value: randomData() },
|
|
|
- { name: '安徽', value: randomData() },
|
|
|
- { name: '山东', value: randomData() },
|
|
|
- { name: '新疆', value: randomData() },
|
|
|
- { name: '江苏', value: randomData() },
|
|
|
- { name: '浙江', value: randomData() },
|
|
|
- { name: '江西', value: randomData() },
|
|
|
- { name: '湖北', value: randomData() },
|
|
|
- { name: '广西', value: randomData() },
|
|
|
- { name: '甘肃', value: randomData() },
|
|
|
- { name: '山西', value: randomData() },
|
|
|
- { name: '内蒙古', value: randomData() },
|
|
|
- { name: '陕西', value: randomData() },
|
|
|
- { name: '吉林', value: randomData() },
|
|
|
- { name: '福建', value: randomData() },
|
|
|
- { name: '贵州', value: randomData() },
|
|
|
- { name: '广东', value: randomData() },
|
|
|
- { name: '青海', value: randomData() },
|
|
|
- { name: '西藏', value: randomData() },
|
|
|
- { name: '四川', value: randomData() },
|
|
|
- { name: '宁夏', value: randomData() },
|
|
|
- { name: '海南', value: randomData() },
|
|
|
- { name: '台湾', value: randomData() },
|
|
|
- { name: '香港', value: randomData() },
|
|
|
- { name: '澳门', value: randomData() }
|
|
|
- ]
|
|
|
- },
|
|
|
- {
|
|
|
- name: '在建',
|
|
|
- type: 'map',
|
|
|
- mapType: 'china',
|
|
|
- color: '#ffcc80',
|
|
|
- label: {
|
|
|
- normal: {
|
|
|
- show: true
|
|
|
- },
|
|
|
- emphasis: {
|
|
|
- show: true
|
|
|
- }
|
|
|
- },
|
|
|
- data: [
|
|
|
- { name: '北京', value: randomData() },
|
|
|
- { name: '天津', value: randomData() },
|
|
|
- { name: '上海', value: randomData() },
|
|
|
- { name: '重庆', value: randomData() },
|
|
|
- { name: '河北', value: randomData() },
|
|
|
- { name: '安徽', value: randomData() },
|
|
|
- { name: '新疆', value: randomData() },
|
|
|
- { name: '浙江', value: randomData() },
|
|
|
- { name: '江西', value: randomData() },
|
|
|
- { name: '山西', value: randomData() },
|
|
|
- { name: '内蒙古', value: randomData() },
|
|
|
- { name: '吉林', value: randomData() },
|
|
|
- { name: '福建', value: randomData() },
|
|
|
- { name: '广东', value: randomData() },
|
|
|
- { name: '西藏', value: randomData() },
|
|
|
- { name: '四川', value: randomData() },
|
|
|
- { name: '宁夏', value: randomData() },
|
|
|
- { name: '香港', value: randomData() },
|
|
|
- { name: '澳门', value: randomData() }
|
|
|
- ]
|
|
|
+ data: []
|
|
|
},
|
|
|
- {
|
|
|
- name: '未建',
|
|
|
- type: 'map',
|
|
|
- mapType: 'china',
|
|
|
- color: '#666',
|
|
|
- label: {
|
|
|
- normal: {
|
|
|
- show: true
|
|
|
- },
|
|
|
- emphasis: {
|
|
|
- show: true
|
|
|
- }
|
|
|
- },
|
|
|
- data: [
|
|
|
- { name: '北京', value: randomData() },
|
|
|
- { name: '天津', value: randomData() },
|
|
|
- { name: '上海', value: randomData() },
|
|
|
- { name: '广东', value: randomData() },
|
|
|
- { name: '台湾', value: randomData() },
|
|
|
- { name: '香港', value: randomData() },
|
|
|
- { name: '澳门', value: randomData() }
|
|
|
- ]
|
|
|
- }
|
|
|
]
|
|
|
};
|
|
|
|