diff --git a/src/bar-chart.js b/src/bar-chart.js index 839d5e767..77fbdeccc 100644 --- a/src/bar-chart.js +++ b/src/bar-chart.js @@ -121,7 +121,8 @@ dc.barChart = function (parent, chartGroup) { }); dc.transition(labels.exit(), _chart.transitionDuration()) - .attr('height', 0) + .attr('x', function(d) { return _chart.x()(d.x); }) + .attr('width', _barWidth * 0.9) .remove(); }