plotly.js
plotly.js copied to clipboard
Wrong calculation of min/max with annotation and `autorange: "reversed"`
Min/max with annotation and autorange: "reversed" is wrongly calculated and the annotation end up outside of the perimeter of the graph.
Intended

Wrongly

https://jsfiddle.net/he6L354d/
@gilles-crealp I'm following up on some old issues — if this issue is still relevant to you, could you explain the behavior you would expect in this situation?
At a first pass the behavior looks correct to me. The meaning of yanchor: "bottom" shouldn't change when the axis is reversed, because "bottom" is intended to refer to the plot itself, not the data coordinates. I might be misunderstanding your point though.