Issue #73 Error: Invalid value for <rect> attribute y="NaN", height="NaN"

master-patched
kawanet 12 years ago
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…
Cancel
Save