diff --git a/awx/ui/client/src/helpers/JobDetail.js b/awx/ui/client/src/helpers/JobDetail.js index df42b50328..fe16b68c35 100644 --- a/awx/ui/client/src/helpers/JobDetail.js +++ b/awx/ui/client/src/helpers/JobDetail.js @@ -934,7 +934,7 @@ export default graph_data.push({ label: 'OK', value: count.ok.length, - color: '#60D66F' + color: '#5CB85C' }); } if (count.changed.length > 0) { @@ -982,15 +982,16 @@ export default return d.label +': '+ Math.round((d.value/total)*100) + "%"; }) .y(function(d) { return d.value; }) - .showLabels(true) - .showLegend(false) + .showLabels(false) + .showLegend(true) .growOnHover(false) .labelThreshold(0.01) .tooltipContent(function(x, y) { return '
'+x+'
'+ '' + Math.floor(y.replace(',','')) + ' HOSTS ' + '
'; }) .color(colors); - + job_detail_chart.legend.rightAlign(false); + job_detail_chart.legend.margin({top: 5, right: 450, left:0, bottom: 0}); d3.select(element.find('svg')[0]) .datum(dataset) .transition().duration(350) @@ -1000,19 +1001,15 @@ export default "font-style": "normal", "font-weight":400, "src": "url(/static/assets/OpenSans-Regular.ttf)", - "width": 500, + "width": 600, "height": 300, + "color": '#848992' }); - - d3.select(element.find(".nv-label text")[0]) - .attr("class", "HostSummary-graph--successful") + d3.select(element.find(".nv-noData")[0]) .style({ - "font-family": 'Open Sans', - "font-size": "16px", - "text-transform" : "uppercase", - "fill" : colors[0], - "src": "url(/static/assets/OpenSans-Regular.ttf)" + "text-anchor": 'start' }); + /* d3.select(element.find(".nv-label text")[1]) .attr("class", "HostSummary-graph--changed") .style({ @@ -1040,6 +1037,7 @@ export default "fill" : colors[3], "src": "url(/static/assets/OpenSans-Regular.ttf)" }); + */ return job_detail_chart; }; }]) diff --git a/awx/ui/client/src/job-detail/host-summary/host-summary.partial.html b/awx/ui/client/src/job-detail/host-summary/host-summary.partial.html index 546772ffc0..4c465f91fe 100644 --- a/awx/ui/client/src/job-detail/host-summary/host-summary.partial.html +++ b/awx/ui/client/src/job-detail/host-summary/host-summary.partial.html @@ -1,6 +1,6 @@