mirror of
https://github.com/ansible/awx.git
synced 2026-03-13 15:09:32 -02:30
Dashboard host count graph
Pie chart tooltip wasn't displaying values with commas properly
This commit is contained in:
@@ -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']);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user