mirror of
https://github.com/ansible/awx.git
synced 2026-07-11 16:28:05 -02:30
Turn off broken growOnHover feature in nv
This commit is contained in:
@@ -62,14 +62,14 @@ function HostStatusGraph($compile, $window) {
|
|||||||
.x(function(d) { return d.label; })
|
.x(function(d) { return d.label; })
|
||||||
.y(function(d) { return d.value; })
|
.y(function(d) { return d.value; })
|
||||||
.showLabels(true)
|
.showLabels(true)
|
||||||
|
.growOnHover(false)
|
||||||
.labelThreshold(0.01)
|
.labelThreshold(0.01)
|
||||||
.tooltipContent(function(x, y) {
|
.tooltipContent(function(x, y) {
|
||||||
return '<b>'+x+'</b>'+ '<p>' + Math.floor(y.replace(',','')) + ' Hosts ' + '</p>';
|
return '<b>'+x+'</b>'+ '<p>' + Math.floor(y.replace(',','')) + ' Hosts ' + '</p>';
|
||||||
})
|
})
|
||||||
|
.labelType("percent")
|
||||||
.color(['#00aa00', '#aa0000']);
|
.color(['#00aa00', '#aa0000']);
|
||||||
|
|
||||||
host_pie_chart.pie.pieLabelsOutside(true).labelType("percent");
|
|
||||||
|
|
||||||
d3.select(element.find('svg')[0])
|
d3.select(element.find('svg')[0])
|
||||||
.datum(data)
|
.datum(data)
|
||||||
.transition().duration(350)
|
.transition().duration(350)
|
||||||
|
|||||||
Reference in New Issue
Block a user