From 34e29a042143804d47f1d8acd1dfc7813174192e Mon Sep 17 00:00:00 2001 From: Joe Fiorini Date: Wed, 28 Jan 2015 10:18:19 -0500 Subject: [PATCH] Correctly select axes on graphs --- awx/ui/static/js/services/adjust-graph-size.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/awx/ui/static/js/services/adjust-graph-size.js b/awx/ui/static/js/services/adjust-graph-size.js index f784cd4cda..0e361b4858 100644 --- a/awx/ui/static/js/services/adjust-graph-size.js +++ b/awx/ui/static/js/services/adjust-graph-size.js @@ -22,11 +22,11 @@ angular.module('DashboardGraphs'). chartModel.yAxis.ticks(Math.max(height / 50, 2)); if (height < 160) { - graph.select('.y.axis').select('.domain').style('display', 'none'); - graph.select('.y.axis').select('.domain').style('display', 'initial'); + graph.select('.y.nv-axis').select('.domain').style('display', 'none'); + graph.select('.y.nv-axis').select('.domain').style('display', 'initial'); } - graph.select('.x.axis') + graph.select('.x.nv-axis') .attr('transform', 'translate(0, ' + height + ')') .call(chartModel.xAxis);