I want to make a rectangle shape on plotly.js that goes outside of the plotting area. Unfortunately, there’s no
yref: "container" for the shapes. If I use
yref: "paper", I have a problem when the window is resized (as my graphs are responsive) - as the “paper” ref is a percentage and the margin is fixed, if the window height is small, the rectangle fits, but as it is increased, the rectangle goes out of the graph. Here is an example:
Is there a way to achieve this?