plotly.js
plotly.js copied to clipboard
Plotly.react doesn't transition correctly when only annotations are changed
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.
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.
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 thanks for reporting.