Skip to content

Commit 8c81b2d

Browse files
Filgordonwoodhull
authored andcommitted
fix weird transition on barChart exit() #822 (see also #1145)
1 parent 73b40db commit 8c81b2d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bar-chart.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@ dc.barChart = function (parent, chartGroup) {
121121
});
122122

123123
dc.transition(labels.exit(), _chart.transitionDuration())
124-
.attr('height', 0)
124+
.attr('x', function(d) { return _chart.x()(d.x); })
125+
.attr('width', _barWidth * 0.9)
125126
.remove();
126127
}
127128

0 commit comments

Comments
 (0)