|
|
@ -1,4 +1,4 @@ |
|
|
|
window.radarData = {'交通特征':9,'拥挤度':8,'饱和度':5,} |
|
|
|
window.radarData = { 交通特征: 9, 拥挤度: 8, 饱和度: 5 }; |
|
|
|
|
|
|
|
let options = { |
|
|
|
legend: { |
|
|
@ -8,7 +8,7 @@ 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: [ |
|
|
@ -25,7 +25,7 @@ let options = { |
|
|
|
shape: "circle", |
|
|
|
axisName: { |
|
|
|
formatter: function (value) { |
|
|
|
return value + ' '+ (radarData[value] / 10 * 100) + "%"; |
|
|
|
return value + " " + (radarData[value] / 10) * 100 + "%"; |
|
|
|
}, |
|
|
|
color: "#fff", |
|
|
|
}, |
|
|
|