Skip to content

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

Open

Description

@emilykl

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

Activity

  1. added
    bugsomething broken
    P2considered for next cycle
    cscustomer success
    on Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2considered for next cyclebugsomething brokencscustomer success

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions