From 590a075df3fb8b74d81d94696eb5b58669e402ec Mon Sep 17 00:00:00 2001 From: Fil Date: Sat, 21 May 2016 12:06:08 +0200 Subject: [PATCH] fix weird transition on barChart exit() #822 (see also #1145) --- src/bar-chart.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); }