Skip to content
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

axis.showline does not work with trace.zorder #7363

Open
emilykl opened this issue Feb 11, 2025 · 0 comments
Open

axis.showline does not work with trace.zorder #7363

emilykl opened this issue Feb 11, 2025 · 0 comments
Labels
bug something broken cs customer success P2 considered for next cycle

Comments

@emilykl
Copy link
Contributor

emilykl commented Feb 11, 2025

Codepen: https://codepen.io/emilykl-code/pen/ZYEEXvw?editors=1111

Axis lines are not drawn when one of the traces on the plot has a zorder property.

Figure definition:

Plotly.newPlot(
  "div1", 
  [
    {
      x: [11, 12, 13, 14, 15],
      y: [9, 10, 12, 16, 24],
      zorder: 2,
    },
    {
      x: [15, 14, 13, 12, 11],
      y: [9, 10, 12, 16, 24],
    }
  ], 
  {
    title: { text: "A Plotly Chart" },
    xaxis: { showline: true },
    yaxis: { showline: true },
  }
);

Expected (axes lines visible):
(note -- blue trace should be in front)

Image

Actual:
Image

@gvwilson gvwilson added bug something broken P2 considered for next cycle cs customer success labels Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken cs customer success P2 considered for next cycle
Projects
None yet
Development

No branches or pull requests

2 participants