From c7c25250a76ed4a375ae2d41e0994bffe0304f39 Mon Sep 17 00:00:00 2001 From: Jared Tabor Date: Fri, 19 Dec 2014 13:57:22 -0500 Subject: [PATCH] Dashboard host count graph Pie chart tooltip wasn't displaying values with commas properly --- awx/ui/static/js/widgets/HostPieChart.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/ui/static/js/widgets/HostPieChart.js b/awx/ui/static/js/widgets/HostPieChart.js index 6fad3ec130..98bcf8ef21 100644 --- a/awx/ui/static/js/widgets/HostPieChart.js +++ b/awx/ui/static/js/widgets/HostPieChart.js @@ -83,7 +83,7 @@ angular.module('HostPieChartWidget', ['RestServices', 'Utilities']) .showLabels(true) .labelThreshold(0.01) .tooltipContent(function(x, y) { - return ''+x+''+ '

' + Math.floor(y) + ' Hosts ' + '

'; + return ''+x+''+ '

' + Math.floor(y.replace(',','')) + ' Hosts ' + '

'; }) .color(['#00aa00', '#aa0000']);