mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -03:30
Dashboard host count graph
Pie chart tooltip wasn't displaying values with commas properly
This commit is contained in:
parent
e41de1684c
commit
c7c25250a7
@ -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']);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user