-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
sliders + addTraces bug #4002
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
Comments
Hi @DaanyWaay Using graph.on('plotly_sliderchange', (event) => {
console.log(event.step.args);
}) as in https://codepen.io/etpinard/pen/PreaRY?editors=1010 seems to always give the correct |
Related: #1704 |
Please notice that
And this is the same code but with traces declared in |
I don't understand what you're referring to here. Can I ask: what are you trying to accomplish with the slider event data? |
What I want to accomplish is exactly what you see in that code pen. This new pen is a slightly modified version of the previous one:
This plot has exactly the same configuration and data and works OK: https://codepen.io/anon/pen/XLBGqq but I don't use addTraces there. |
Ah now I see it. Thanks for posting! |
.. as this can have erroneous repercussions e.g. when fullLayout.sliders[i].steps[j].args is linked to the same ref as in gd.layout.
If I add the traces manually the slider.steps[0] looses its arguments: https://codepen.io/anon/pen/ydMLyK
The text was updated successfully, but these errors were encountered: