Skip to content

Commit

Permalink
move change applied in wrong place
Browse files Browse the repository at this point in the history
for #1146
  • Loading branch information
gordonwoodhull committed Jul 28, 2016
1 parent 8c81b2d commit 40e8338
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/bar-chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down Expand Up @@ -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();
}

Expand Down

0 comments on commit 40e8338

Please sign in to comment.