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

zoom broken with multiple traces with different zorder #7320

Open
mrubioroy opened this issue Dec 17, 2024 · 0 comments
Open

zoom broken with multiple traces with different zorder #7320

mrubioroy opened this issue Dec 17, 2024 · 0 comments
Labels
bug something broken P3 backlog

Comments

@mrubioroy
Copy link

When I set different zorder to two traces in the same axes. After zooming and reseting axes, zoom no longer works as expected.
Steps to reproduce:

  • Open this example
  • Zoom between x=3 and x=4 => works as expected
  • Reset axes
  • Zoom between x=1 and x=2 => zoomed region is not between 1 and 2 as expected

Am I using zorder incorrectly or is this a bug?

Example:

JS:

var trace1 = {x0: 1, dx: 1, y: [10, 15, 13, 17], zorder: 0};
var trace2 = {x0: 1, dx: 1, y: [16, 5, 11, 9], zorder: 1};
var data = [trace1, trace2];
Plotly.newPlot('myDiv', data);

HTML:

<head>
	<script src='https://cdn.plot.ly/plotly-2.35.2.min.js'></script>
</head>
<body>
	<div id='myDiv'></div>
</body>
@gvwilson gvwilson added bug something broken P3 backlog labels Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken P3 backlog
Projects
None yet
Development

No branches or pull requests

2 participants