Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #8194
Bug
Scatter, quiver, sunburst, treemap and icicle create their parent transition with a bare
d3.transition(), which d3 v3 puts on the document root. A newer transition there interrupts the older one, and theinterrupthandler callsonComplete. So when a second graph starts a transition, the first graph's promise resolves and itsplotly_transitionedevent fires almost immediately. Sunburst, treemap and icicle also redraw at that point, which removes their leaving slices at once.Fix
The parent transition is now created on the trace layer (
scatterLayer.transition()/layer.transition()), so it can only be interrupted by a newer transition on the same layer.Two new tests in
transition_test.jsfail onmain: one for the scatter promise, one for the sunburst slices.