Open
Description
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>