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

Plotly.react doesn't transition correctly when only annotations are changed

Open aatishb opened this issue 5 years ago • 1 comments
trafficstars

Here's an example where I'm attempting to transition to a plot with added annotations using Plotly.react. Notice if I update just the layout and not the data, the graph won't update.

Example 1

However if I remove the transition in Example 1, the graph will update correctly.

And if I update the data and the layout together, then also the graph will transition correctly.

Example 2

I have been running into some difficulties with annotations moving around erratically when I try to transition between layouts using Plotly.react, and in trying to debug that noticed the above. This seems to me like a bug related to transitions.

aatishb avatar May 19 '20 00:05 aatishb

@aatishb thanks for reporting.

archmoj avatar May 19 '20 21:05 archmoj