option = {
backgroundColor: 'transparent',
title: {
text: '',
left: 'center'
},
tooltip: {
trigger: 'item'
},
legend: {
orient: 'vertical',
show:true,
data:['仪器总数','正常','位置异常','仪器异常']
},
color:["#4AD5FA"],
series: [{
name: '仪器总数',
type: 'map',
mapType: 'china',
color:['#2DBFD9'],
roam: true,
label: {
normal: {
show: false
},
emphasis: {
show: true
}
},
itemStyle: {
emphasis: {
areaColor: '#0A5BB6',
}
},
data: [{
name: '北京',
value: 9
}, {
name: '天津',
value: 9
}, {
name: '上海',
value: 11
}, {
name: '重庆',
value: 9
}, {
name: '河北',
value: 9
}, {
name: '河南',
value: 9
}, ]
},
{
name: '正常',
type: 'map',
color:['#56C8FB'],
mapType: 'china',
data: [{
name: '青海',
value: 4
}, {
name: '西藏',
value: 0.2
}, {
name: '四川',
value: 9
}, {
name: '宁夏',
value: 9
}, {
name: '海南',
value: 9
}, {
name: '台湾',
value: 9
}]
},
{
name: '位置异常',
type: 'map',
color:['#F99F7F'],
mapType: 'china',
data: [{
name: '辽宁',
value: 9
}, {
name: '黑龙江',
value: 9
}, {
name: '湖南',
value: 9
}, {
name: '安徽',
value: 9
}, {
name: '山东',
value: 9
}, {
name: '新疆',
value: 0.5
}, {
name: '江苏',
value: 9
},]
},
{
name: '仪器异常',
type: 'map',
mapType: 'china',
color:['#F8CD0E'],
data: [{
name: '浙江',
value: 9
}, {
name: '江西',
value: 9
}, {
name: '湖北',
value: 9
}, {
name: '广西',
value: 9
}, {
name: '甘肃',
value: 4
}, {
name: '山西',
value: 9
}, {
name: '内蒙古',
value: 6
},]
},
]
};