PMSI-AlignAlytics / dimple

An object-oriented API for business analytics
Other
2.73k stars 557 forks source link

animation of stacked bar chart after series items appear/disappear is not smooth #181

Open donhatch opened 9 years ago

donhatch commented 9 years ago

Animated redrawing of a stacked bar chart after series items appear/disappear does not look as smooth as it could be. I expect the hidden item to simply transition to zero size, but instead, its upper and/or lower bound transitions to the top or bottom of the bar and then the item abruptly disappears at the end.

Workaround: to hide an item, change its value to zero instead of filtering it out of the data.

The following jsfiddle shows the problem: original method on the left, workaround on the right. http://jsfiddle.net/donhatch/ht1x2sjs/3/