plotly.js icon indicating copy to clipboard operation
plotly.js copied to clipboard

Wrong calculation of min/max with annotation and `autorange: "reversed"`

Open gilles-crealp opened this issue 4 years ago • 1 comments

Min/max with annotation and autorange: "reversed" is wrongly calculated and the annotation end up outside of the perimeter of the graph.

Intended 2022-08-09 08_25_06-JSFiddle - Code Playground

Wrongly 2022-08-09 08_21_48-JSFiddle - Code Playground

https://jsfiddle.net/he6L354d/

gilles-crealp avatar Aug 09 '22 06:08 gilles-crealp

@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.

emilykl avatar Aug 28 '26 17:08 emilykl