Issue #192 fixed position of distributions after amrgin changes

This commit is contained in:
Bob Monteverde 2012-09-10 17:59:48 -04:00
parent 91d2ba0d57
commit 7d584841cd
3 changed files with 9 additions and 9 deletions

View File

@ -8449,9 +8449,9 @@ nv.models.scatterChart = function() {
return d.color || color(d, i);
}).filter(function(d,i) { return !data[i].disabled }));
gEnter.select('.nv-distWrap').append('g')
.attr('class', 'nv-distributionX')
.attr('transform', 'translate(0,' + y.range()[0] + ')');
.attr('class', 'nv-distributionX');
g.select('.nv-distributionX')
.attr('transform', 'translate(0,' + y.range()[0] + ')')
.datum(data.filter(function(d) { return !d.disabled }))
.call(distX);
}
@ -8465,9 +8465,9 @@ nv.models.scatterChart = function() {
return d.color || color(d, i);
}).filter(function(d,i) { return !data[i].disabled }));
gEnter.select('.nv-distWrap').append('g')
.attr('class', 'nv-distributionY')
.attr('transform', 'translate(-' + distY.size() + ',0)');
.attr('class', 'nv-distributionY');
g.select('.nv-distributionY')
.attr('transform', 'translate(-' + distY.size() + ',0)')
.datum(data.filter(function(d) { return !d.disabled }))
.call(distY);
}

2
nv.d3.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -248,9 +248,9 @@ nv.models.scatterChart = function() {
return d.color || color(d, i);
}).filter(function(d,i) { return !data[i].disabled }));
gEnter.select('.nv-distWrap').append('g')
.attr('class', 'nv-distributionX')
.attr('transform', 'translate(0,' + y.range()[0] + ')');
.attr('class', 'nv-distributionX');
g.select('.nv-distributionX')
.attr('transform', 'translate(0,' + y.range()[0] + ')')
.datum(data.filter(function(d) { return !d.disabled }))
.call(distX);
}
@ -264,9 +264,9 @@ nv.models.scatterChart = function() {
return d.color || color(d, i);
}).filter(function(d,i) { return !data[i].disabled }));
gEnter.select('.nv-distWrap').append('g')
.attr('class', 'nv-distributionY')
.attr('transform', 'translate(-' + distY.size() + ',0)');
.attr('class', 'nv-distributionY');
g.select('.nv-distributionY')
.attr('transform', 'translate(-' + distY.size() + ',0)')
.datum(data.filter(function(d) { return !d.disabled }))
.call(distY);
}