Text move to wrong position when scrolling & update (or relayout) graph

In my plotly graph in JS, I have a problem with the text position of annotation when I scroll down.
You can see the exemple in codepen : http://codepen.io/plotly/pen/Kzjamd
If you reduce the graph window (by clicking on “Console” for exemple) then scroll down until bottom of the graph -> then click on a data point to start the plotly js function. You will see that text position is wrong because the text should appear on the top of the arrow…

If you scroll up to the top of the graph and click again -> text position is good (on the top of the arrow)…

Any idea to fix this ?


Thanks very much for the report.

This is regression in 1.27.0, so switching back to 1.26.1 should solve the issue.

For the latest development info, see https://github.com/plotly/plotly.js/issues/1678

1 Like