Skip to content

Fix gaps between stacked bars during transitions - #8193

Open
bodison wants to merge 3 commits into
plotly:mainfrom
bodison:fix-bar-transition-gaps
Open

bodison wants to merge 3 commits into
plotly:mainfrom
bodison:fix-bar-transition-gaps

Conversation

@bodison

@bodison bodison commented Nov 25, 2026

Copy link
Copy Markdown

Fixes #8192

Bug

Each bar gets its own d3 transition, stamped with the time it was created. Bars are created one by one while the traces are drawn, so later bars start a millisecond or two later, and bars that touch drift apart for the whole transition.

Fix

bar/plot.js now draws the bars inside a parent transition, so everything drawn there inherits its start time. The body of plot moved unchanged into _plot; plot only decides whether to wrap it.

The new test in transition_test.js fails on main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG]: Gaps open between stacked bars during transitions

1 participant