From 3bb1ac14eae1dfa4ec0f539fa2f339ec61db563f Mon Sep 17 00:00:00 2001 From: Leigh Johnson Date: Thu, 26 May 2016 11:05:02 -0400 Subject: [PATCH] use math.floor to calc % pie slices --- awx/ui/client/src/helpers/JobDetail.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/ui/client/src/helpers/JobDetail.js b/awx/ui/client/src/helpers/JobDetail.js index fe16b68c35..09f327339c 100644 --- a/awx/ui/client/src/helpers/JobDetail.js +++ b/awx/ui/client/src/helpers/JobDetail.js @@ -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)