|
|
@ -48,6 +48,7 @@ var options = { |
|
|
|
echartsData.forEach((it) => { |
|
|
|
count += it.value; |
|
|
|
}) |
|
|
|
if (count == 0) count = 1; |
|
|
|
let obj = echartsData.filter(it => { return it.name == params }) |
|
|
|
return `{ast|${obj[0].name}} {bst|${Math.round(obj[0].value / count * 100)}%}` |
|
|
|
}, |
|
|
|