From 40e8338547d42073d61d3aa4b9121a031c95be42 Mon Sep 17 00:00:00 2001 From: Gordon Woodhull Date: Wed, 27 Jul 2016 15:52:09 -0400 Subject: [PATCH] move change applied in wrong place for #1146 --- src/bar-chart.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bar-chart.js b/src/bar-chart.js index 77fbdeccc..587ebf899 100644 --- a/src/bar-chart.js +++ b/src/bar-chart.js @@ -121,8 +121,7 @@ dc.barChart = function (parent, chartGroup) { }); dc.transition(labels.exit(), _chart.transitionDuration()) - .attr('x', function(d) { return _chart.x()(d.x); }) - .attr('width', _barWidth * 0.9) + .attr('height', 0) .remove(); } @@ -173,7 +172,8 @@ dc.barChart = function (parent, chartGroup) { .select('title').text(dc.pluck('data', _chart.title(d.name))); dc.transition(bars.exit(), _chart.transitionDuration()) - .attr('height', 0) + .attr('x', function (d) { return _chart.x()(d.x); }) + .attr('width', _barWidth * 0.9) .remove(); }