Commit 48932b27 authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent fef69b47
...@@ -80,7 +80,8 @@ function run(data, config,risk) { ...@@ -80,7 +80,8 @@ function run(data, config,risk) {
{ {
let count=counter(i,levels) let count=counter(i,levels)
// newLevel.push({level:i,count:count}) // newLevel.push({level:i,count:count})
newLevelText=newLevelText+i+':'+count+',' let per=parseFloat((count/total)*100).toFixed(1)
newLevelText=newLevelText+i+':'+count+':'+per+'%'+','
} }
// for (let i=0;i<newLevel) // for (let i=0;i<newLevel)
......
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