Commit e663d828 authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent 48932b27
...@@ -81,7 +81,12 @@ function run(data, config,risk) { ...@@ -81,7 +81,12 @@ 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})
let per=parseFloat((count/total)*100).toFixed(1) let per=parseFloat((count/total)*100).toFixed(1)
newLevelText=newLevelText+i+':'+count+':'+per+'%'+',' newLevelText=newLevelText+i+':'+count+':'+per+'%'+','
if ((i+1) %12 ===0)
newLevelText=newLevelText+'\n'
} }
// 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