Commit d5b1dfed authored by 乐宝呗666's avatar 乐宝呗666

修改漏斗图的百分比值

parent 8f9ff85e
...@@ -28,7 +28,9 @@ export default { ...@@ -28,7 +28,9 @@ export default {
tooltip: { tooltip: {
transitionDuration: 0, transitionDuration: 0,
trigger: 'item', trigger: 'item',
formatter: '{b}: {c} ({d}%)' // a对应系列名称,b对应数据项名称,c对应数据项值 formatter: function (param) { // a对应系列名称,b对应数据项名称,c对应数据项值
return param.name + ':' + param.value + '(' + (param.value / vm.message.data[0].value * 100).toFixed(2) + '%)'
}
}, },
legend: { legend: {
textStyle: { textStyle: {
......
...@@ -140,7 +140,7 @@ ...@@ -140,7 +140,7 @@
</div> </div>
<div class="rightBlock"> <div class="rightBlock">
<div class="boxHeight-3"> <div class="boxHeight-3">
<div class="title">服务分析</div> <div class="title">立项分析</div>
<serviceAnalysis class="heightCut44" /> <serviceAnalysis class="heightCut44" />
</div> </div>
<div class="boxHeight-3 mt-2"> <div class="boxHeight-3 mt-2">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment