mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 01:47:35 -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)
|
.showLabels(true)
|
||||||
.labelThreshold(0.01)
|
.labelThreshold(0.01)
|
||||||
.tooltipContent(function(x, y) {
|
.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']);
|
.color(['#00aa00', '#aa0000']);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user