mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 01:47:35 -02:30
Correctly select axes on graphs
This commit is contained in:
@@ -22,11 +22,11 @@ angular.module('DashboardGraphs').
|
|||||||
chartModel.yAxis.ticks(Math.max(height / 50, 2));
|
chartModel.yAxis.ticks(Math.max(height / 50, 2));
|
||||||
|
|
||||||
if (height < 160) {
|
if (height < 160) {
|
||||||
graph.select('.y.axis').select('.domain').style('display', 'none');
|
graph.select('.y.nv-axis').select('.domain').style('display', 'none');
|
||||||
graph.select('.y.axis').select('.domain').style('display', 'initial');
|
graph.select('.y.nv-axis').select('.domain').style('display', 'initial');
|
||||||
}
|
}
|
||||||
|
|
||||||
graph.select('.x.axis')
|
graph.select('.x.nv-axis')
|
||||||
.attr('transform', 'translate(0, ' + height + ')')
|
.attr('transform', 'translate(0, ' + height + ')')
|
||||||
.call(chartModel.xAxis);
|
.call(chartModel.xAxis);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user