-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
zorder doesn't work on version 5.21.0 #4583
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 @khisr0w I'm not able to reproduce the issue that you have mentioned. Using your code I get the behaviour is as expected: |
@khisr0w are you running this in VSCode? What version of Plotly.js do you see if you hover over the Plotly logo in the corner? ![]() |
@LiamConnors As a matter of fact, yes. The JS version seems to lower than what is shown in your case: |
@khisr0w yeah, it can be an issue in VS Code as by default it uses its own bundled version of Plotly.js This page gives a bit more detail. If you call
|
Worked like a charm. Thanks, @LiamConnors :) |
The
zorder
attribute was added recently. However, the following code does not work as expected (exact code as here):Expected Behavior: Bar chart should have a higher z-order, meaning it should be at the front.

Instead, the code produces the following:
The text was updated successfully, but these errors were encountered: