Dashboard host count graph

Pie chart tooltip wasn't displaying values with commas properly
This commit is contained in:
Jared Tabor 2014-12-19 13:57:22 -05:00
parent e41de1684c
commit c7c25250a7

View File

@ -83,7 +83,7 @@ angular.module('HostPieChartWidget', ['RestServices', 'Utilities'])
.showLabels(true)
.labelThreshold(0.01)
.tooltipContent(function(x, y) {
return '<b>'+x+'</b>'+ '<p>' + Math.floor(y) + ' Hosts ' + '</p>';
return '<b>'+x+'</b>'+ '<p>' + Math.floor(y.replace(',','')) + ' Hosts ' + '</p>';
})
.color(['#00aa00', '#aa0000']);