You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
95 lines
2.8 KiB
95 lines
2.8 KiB
/*
|
|
* @Author: your name
|
|
* @Date: 2021-10-14 11:53:16
|
|
* @LastEditTime: 2021-11-04 17:17:02
|
|
* @LastEditors: Please set LastEditors
|
|
* @Description: In User Settings Edit
|
|
* @FilePath: /data-show/src/views/WeiboDetails/weiboUserActiveArea/opt2.js
|
|
*/
|
|
|
|
export default function createOptD2(dm) {
|
|
return {
|
|
tooltip: {
|
|
trigger: "item",
|
|
backgroundColor: "#08182F",
|
|
color: "#fff",
|
|
borderColor: "#3373CC",
|
|
textStyle: {
|
|
color: "#fff", //设置文字颜色
|
|
},
|
|
extraCssText: "box-shadow: 0px 0px 10px 0px #3373CC;"
|
|
},
|
|
// geo: {
|
|
// show: true,
|
|
// map: 'china',
|
|
// roam: false,//地图设置不可拖拽,固定的
|
|
// itemStyle: {
|
|
// normal: {
|
|
// borderWidth: 0,
|
|
// shadowColor: 'rgba(0,54,255, 1)',
|
|
// shadowBlur: 100
|
|
// }
|
|
// }
|
|
// },
|
|
visualMap: {
|
|
type: 'continuous',
|
|
show: false,
|
|
min: 0,
|
|
max: 2000,
|
|
text: ['高', '低'],
|
|
orient: 'horizontal',
|
|
itemWidth: 15,
|
|
itemHeight: 200,
|
|
right: 0,
|
|
bottom: 30,
|
|
inRange: {
|
|
color: ['#0393d2', '#75ddff']
|
|
},
|
|
textStyle: {
|
|
color: 'white'
|
|
}
|
|
},
|
|
series: [
|
|
{
|
|
name: "微博区域",
|
|
type: "map",
|
|
mapType: "china",
|
|
roam: false,
|
|
zoom: 1,//默认地图在容器中显示zoom:1,可根据需求放大缩小地图
|
|
left: 16,
|
|
top: 20,
|
|
right: 10,
|
|
bottom: 10,
|
|
selectedMode:'multiple',
|
|
colorBy: 'data',
|
|
itemStyle: {
|
|
areaColor: '#001f5b',//地图区域背景颜色
|
|
borderColor: '#005cf9',//地图边界颜色
|
|
shadowColor: '#005cf9',
|
|
emphasis: {
|
|
areaColor: '#3066ba',//鼠标滑过区域颜色
|
|
label: {
|
|
color: '#fff'
|
|
}
|
|
}
|
|
},
|
|
label: {
|
|
normal: {
|
|
show: false
|
|
},
|
|
},
|
|
|
|
// select: {
|
|
// label: {
|
|
// show: false
|
|
// },
|
|
// itemStyle: {
|
|
// areaColor: '#3edffe'
|
|
// }
|
|
// },
|
|
data: dm
|
|
}
|
|
]
|
|
}
|
|
}
|