I’ve created a plot and plotted also a line shape over the plot.
The line shape is a vertical one with a
-minY = minY in data to plot * 10
-max Y = maxY in data to plot * 10
But, I restricted the yaxis.range to the minY and maxY in data to plot.
This is basically to achieve this https://community.plotly.com/t/moving-shapes-with-mouse-in-plotly-js-reactjs/11457/7?u=fjrial
Now the part where it fails
If I make the same with a “rect” shape, instead of a line, the plotted chart shows fine, but if you do a double-click (reset zoom event) over it, the chart does not obey the yaxis.range… Maybe it’s a bug??? Does someone knows how to fix this??