-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bar transition oddities #4251
Comments
Hmm. Interesting, scatter seems to behave the same: https://codepen.io/etpinard/pen/dyyPvvZ?editors=0010 |
... and by the way, plotly.js/src/plots/animation_attributes.js Lines 123 to 133 in bead43f
|
Yep, I know, I was just calling attention to it and making it easier to change to the non-default options in the pen ;) |
After some investigations, it doesn't look like Layout + traces transitions don't look very good at the moment, but they don't look any worse than what was proposed in #3217 So, this ticket is essentially a duplicate of #1687 |
I agree in principle, although solving the double-jump issue seems easier than solving #1687 altogether... what does that first jump represent? The middle point/bar jumps from 4 to 5, then the yaxis range smoothly transitions along with the point/bar, then the point/bar jumps from 5 to 6. I would expect that under layout-first the first jump wouldn't happen, and the point/bar would jump from 4 to 6... ? |
Double jump? In the gif above I can only detect one "jump"
Here's the current logic under Lines 2617 to 2621 in bead43f
|
You don’t see the immediate jump 4-5, then slide, then jump 5-6? |
... so w/o the "jump" at the end of the transition we'd get: the correct y-axis range of ~ |
Yeah the jump at the end is fine. This issue is about the first jump :) |
Ah now I see it, there's a race condition in: Lines 2617 to 2621 in bead43f
Sorry for the confusion! Codepen attempt: https://codepen.io/etpinard/pen/oNNgGem?editors=0010 |
Scatter version: https://codepen.io/etpinard/pen/NWWPaaR?editors=0010 |
phew! Those pens look like what I would expect, yep! |
- this will help lock down a fix for: #4251
... to remove "jump" caused by transitionTraces()
In this pen which is in "layout first" transition ordering, there seems to be an extra bar-height jump: https://codepen.io/nicolaskruchten/pen/WNNeZgz?editors=0010
The text was updated successfully, but these errors were encountered: