|
|
@ -15,16 +15,27 @@ let indicator = [ |
|
|
|
{ name: '180°全景摄像机', max: 100 }, |
|
|
|
{ name: '360°全景摄像机', max: 100 }, |
|
|
|
{ name: '高清网络枪型固定摄像机', max: 100 }, |
|
|
|
{ name: '高清网络球形摄像机', max: 100 }, |
|
|
|
{ name: '高清网络球形摄像机++++', max: 100 }, |
|
|
|
] |
|
|
|
let data = [{ |
|
|
|
value: [60, 30, 50, 80, 90, 98, 50, 56], |
|
|
|
name: "哈哈哈佛挡杀佛很多事" |
|
|
|
}]; |
|
|
|
|
|
|
|
let counter = -1; |
|
|
|
let options = { |
|
|
|
tooltip:{ |
|
|
|
show: false |
|
|
|
show: true, |
|
|
|
trigger:"item", |
|
|
|
backgroundColor:"rgba(20,89,119,0.9)", |
|
|
|
borderColor:"rgba(78, 174, 204, 1)", |
|
|
|
borderWidth:1, |
|
|
|
padding:20, |
|
|
|
textStyle:{ |
|
|
|
color:"#f4f4f4" |
|
|
|
}, |
|
|
|
// formatter(params){
|
|
|
|
// }
|
|
|
|
}, |
|
|
|
radar: { |
|
|
|
center: ['50%', '50%'], |
|
|
@ -54,24 +65,33 @@ let options = { |
|
|
|
lineStyle: { |
|
|
|
color: '#2AD1BCCC' |
|
|
|
} |
|
|
|
}, |
|
|
|
axisLabel:{ |
|
|
|
show:true, |
|
|
|
formatter: function (value, index) { |
|
|
|
counter ++ ; |
|
|
|
if(counter<6){ |
|
|
|
return value + "%"; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
series: [ |
|
|
|
{ |
|
|
|
type: 'radar', |
|
|
|
data:[], |
|
|
|
name: '设备在线率', |
|
|
|
label: { |
|
|
|
show: true, |
|
|
|
formatter: function (params) { |
|
|
|
return params.value + "%"; |
|
|
|
}, |
|
|
|
color: '#fff', |
|
|
|
// position:[-20,-10,-10,-10],
|
|
|
|
align: 'right', |
|
|
|
distance: 10, |
|
|
|
align: 'right' |
|
|
|
}, |
|
|
|
// name: '设备在线率',
|
|
|
|
// label: {
|
|
|
|
// show: true,
|
|
|
|
// formatter: function (params) {
|
|
|
|
// return params.value + "%";
|
|
|
|
// },
|
|
|
|
// color: '#fff',
|
|
|
|
// // position:[-20,-10,-10,-10],
|
|
|
|
// align: 'right',
|
|
|
|
// distance: 10,
|
|
|
|
// align: 'right'
|
|
|
|
// },
|
|
|
|
symbolSize: 10, |
|
|
|
lineStyle: { //边缘颜色
|
|
|
|
width: 2, |
|
|
@ -89,5 +109,7 @@ let options = { |
|
|
|
} |
|
|
|
] |
|
|
|
}; |
|
|
|
|
|
|
|
export default options; |
|
|
|
let counterReset = function(){ |
|
|
|
counter = -1; |
|
|
|
} |
|
|
|
export default {options, counterReset}; |