diff --git a/src/models/multiBar.js b/src/models/multiBar.js index 12c05b4..a3823a6 100644 --- a/src/models/multiBar.js +++ b/src/models/multiBar.js @@ -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; }); })