From 7e5ed6a429771f1b95270ac57288333469a9f82e Mon Sep 17 00:00:00 2001 From: kevPo Date: Tue, 25 Oct 2016 21:03:42 -0400 Subject: [PATCH] Removed useless 'other' category --- lib/static/less/main.less | 2 +- lib/static/static/js/velocityMetrics.js | 13 ------------- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/lib/static/less/main.less b/lib/static/less/main.less index e239924..1c74686 100644 --- a/lib/static/less/main.less +++ b/lib/static/less/main.less @@ -384,7 +384,7 @@ a:focus { margin: 8px; text-align: center; vertical-align: top; - width: 81px; + width: 90px; } path.color0 { diff --git a/lib/static/static/js/velocityMetrics.js b/lib/static/static/js/velocityMetrics.js index 640ede0..712ae35 100644 --- a/lib/static/static/js/velocityMetrics.js +++ b/lib/static/static/js/velocityMetrics.js @@ -57,7 +57,6 @@ metrics.categories.push(getCategoryData("FEATURES", featureCategory, velocityMilestones, totalPoints)); metrics.categories.push(getCategoryData("RESEARCH", researchCategory, velocityMilestones, totalPoints)); metrics.categories.push(getCategoryData("TECHNICAL DEBT", technicalDebtCategory, velocityMilestones, totalPoints)); - metrics.categories.push(getCategoryDataForOther(metrics.categories)); metrics.categories.sort(descendingCategory); @@ -88,18 +87,6 @@ return category; } - - function getCategoryDataForOther(categories) { - var category = { title: "OTHER", count: 0 }; - var totalPercentage = categories.map(function(category) { - return category.count; - }).reduce(sum); - - if (totalPercentage < 100) - category.count = 100 - totalPercentage; - - return category; - } function getVelocityMilestones(data) { return data.slice(-milestonesInVelocity); }; function sum(a,b) { return a+b; };