Black Lives Matter. Please consider donating to Black Girls Code today.

Issue with custom shape positioning

I am trying to add custom shape over the plotted chart using shapes option in layout configuration. Everything worked well, but when I tried to use ‘layer’ option inside shape definition and set layer to “below” i can’t use xref value as “x”. It seems that this value is ignored, when I use ref as paper it works okay but I need exact values of x to place a shape. Also the weird thing is when I use previously mentioned configuration chart “makes” place for additional shape (x axis is moved to proper place) but the shape is not drawn.

That shouldn’t happen. Would you mind sharing a reproducible example?