mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 11:20:39 -03:30
use math.floor to calc % pie slices
This commit is contained in:
parent
de99df4b20
commit
3bb1ac14ea
@ -979,7 +979,7 @@ export default
|
||||
job_detail_chart = nv.models.pieChart()
|
||||
.margin({bottom: 15})
|
||||
.x(function(d) {
|
||||
return d.label +': '+ Math.round((d.value/total)*100) + "%";
|
||||
return d.label +': '+ Math.floor((d.value/total)*100) + "%";
|
||||
})
|
||||
.y(function(d) { return d.value; })
|
||||
.showLabels(false)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user