Issue #73 Error: Invalid value for <rect> attribute y="NaN", height="NaN"
This commit is contained in:
parent
5079b67649
commit
2effb06d9e
@ -266,10 +266,10 @@ nv.models.multiBar = function() {
|
||||
y(0) :
|
||||
y(0) - y(getY(d,i)) < 1 ?
|
||||
y(0) - 1 :
|
||||
y(getY(d,i))
|
||||
})
|
||||
.attr('height', function(d,i) {
|
||||
return Math.max(Math.abs(y(getY(d,i)) - y(0)),1);
|
||||
y(getY(d,i)) || 0;
|
||||
})
|
||||
.attr('height', function(d,i) {
|
||||
return Math.max(Math.abs(y(getY(d,i)) - y(0)),1) || 0;
|
||||
});
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user