Skip to content

Commit

Permalink
fix weird transition on barChart exit() #822 (see also #1145)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fil authored and gordonwoodhull committed Jul 27, 2016
1 parent 9283b97 commit b8b8111
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bar-chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit b8b8111

Please sign in to comment.