Skip to content
Merged
1 change: 1 addition & 0 deletions src/traces/bar/plot.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ function plot(gd, plotinfo, cdModule, traceLayer, opts, makeOnCompleteCallback)
}
di.isBlank = isBlank;

// for empty bars, ensure start and end positions are equal when having transition
if(isBlank && withTransition) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With revised logic, now there is no need for handling transitions differently.

if(isHorizontal) {
x1 = x0;
Expand Down