|
|
@ -1,4 +1,4 @@ |
|
|
|
window.radarData = {'交通特征':9,'拥挤度':8,'饱和度':5,} |
|
|
|
window.radarData = { 交通特征: 9, 拥挤度: 8, 饱和度: 5 }; |
|
|
|
|
|
|
|
let options = { |
|
|
|
legend: { |
|
|
@ -8,15 +8,15 @@ let options = { |
|
|
|
trigger: "item", |
|
|
|
formatter: function (params) { |
|
|
|
let data = params.data; |
|
|
|
return `交通特征: ${data.value[0]}<br>拥挤度: ${data.value[1]}<br>饱和度: ${data.value[2]}`; |
|
|
|
return `<span style="width:60px;display:inline-block">交通特征:</span> <span style="font-weight: bold;"> ${data.value[0]} 指标</span><br><span style="width:60px;display:inline-block">拥挤度: </span><span style="font-weight: bold;"> ${data.value[1]} 指标</span><br><span style="width:60px;display:inline-block">饱和度:</span> <span style="font-weight: bold;"> ${data.value[2]} 指标</span>`; |
|
|
|
}, |
|
|
|
}, |
|
|
|
radar: [ |
|
|
|
{ |
|
|
|
indicator: [ |
|
|
|
{ name: "交通特征",max: 10 }, |
|
|
|
{ name: "拥挤度" ,max: 10}, |
|
|
|
{ name: "饱和度",max: 10 }, |
|
|
|
{ name: "交通特征", max: 10 }, |
|
|
|
{ name: "拥挤度", max: 10 }, |
|
|
|
{ name: "饱和度", max: 10 }, |
|
|
|
], |
|
|
|
center: ["50%", "55%"], |
|
|
|
radius: 70, |
|
|
@ -25,8 +25,8 @@ let options = { |
|
|
|
shape: "circle", |
|
|
|
axisName: { |
|
|
|
formatter: function (value) { |
|
|
|
return value + ' '+ (radarData[value] / 10 * 100) + "%"; |
|
|
|
}, |
|
|
|
return value + " " + (radarData[value] / 10) * 100 + "%"; |
|
|
|
}, |
|
|
|
color: "#fff", |
|
|
|
}, |
|
|
|
splitArea: { |
|
|
@ -55,7 +55,7 @@ let options = { |
|
|
|
}, |
|
|
|
data: [ |
|
|
|
{ |
|
|
|
value: [9,8,5], |
|
|
|
value: [9, 8, 5], |
|
|
|
name: "月指标", |
|
|
|
areaStyle: { |
|
|
|
color: { |
|
|
|