-
-
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
zorder
on overlayed subplots case of multiple traces in each subplot
#7070
Comments
Thanks for the report. This is a bug. |
@stephprobst in your codepen the third trace has a name saying the zorder is 3; but its zorder is actually is set to 2. |
@archmoj : You're right. Thanks. I corrected it. |
Thanks @stephprobst. |
@archmoj : Yes, I can confirm. The problem doesn't seem to be related to the used barmode. |
@stephprobst I'm trying to replicate this issue by tweaking one of the minimal mocks we used for zorder and overlayed axis. |
@archmoj : The problem sits with the assignment of the bars to the y-axes. If you remove all assignment information, the bug appears. In your current codepen version:
|
OK. So this is not related to combinations of bars and scatter as well. |
@archmoj : Yes, I can confirm, that the bug is present in the given codepen and that the root cause seems to be related to the assignment to the y-axes. |
Thanks @stephprobst. |
@archmoj : Done. |
zorder
on overlayed subplots case of multiple traces in each subplot
@stephprobst I edited the title. BTW it appears in the original issue the bug appears when lower subplot has more traces in it. |
@archmoj Yes, I confirm, that the linked codepen works as expected. Thanks for your work on this. |
The in plotly.js 2.34.0 introduced zorder property does not work as expected. The following chart demonstrates the issue:
https://codepen.io/Djeramon/pen/VwJPXGr
The orange line is drawn on top, but it should be drawn behind the green and red line.
The issue seems to be related to the traces being linked to different y-axes. Once the axes are being linked to the same y-axis, the bug disappears.
The text was updated successfully, but these errors were encountered: