diff --git a/src/models/historicalBar.js b/src/models/historicalBar.js index 6105e60..c692a88 100644 --- a/src/models/historicalBar.js +++ b/src/models/historicalBar.js @@ -170,8 +170,7 @@ nv.models.historicalBar = function() { .attr('width', (availableWidth / data[0].values.length) * .9 ) - d3.transition(bars) - //.attr('y', function(d,i) { return y(Math.max(0, getY(d,i))) }) + bars.transition(). .attr('y', function(d,i) { return getY(d,i) < 0 ? y(0) : @@ -180,7 +179,6 @@ nv.models.historicalBar = function() { y(getY(d,i)) }) .attr('height', function(d,i) { return Math.max(Math.abs(y(getY(d,i)) - y(0)),1) }); - //.order(); // not sure if this makes any sense for this model });