`axis.showline` does not work with `trace.zorder`
Open
Nobody has claimed this yet.
bug
cs
P2
- Dominant language
- JavaScript
- Stars
- 18.3k
- Forks
- 2k
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 28
Description
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)
Actual:
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the CodePen reproduction and the Plotly.newPlot figure definition in the issue, using the axis showline and trace zorder options. Compare the expected and actual images while tracing how those options are rendered. Done means both axis lines remain visible and the zordered blue trace stays in front.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100