I've recorded the issue, might need to replay it a few times - http://recordit.co/fzDIRlNv6m. What's happening that on the button press the Plotly.animate() method is called with a layout change (no data change), the yaxis.range change is being animated, but the xaxis.range just gets reset to some weird dates (can see the labels at the bottom) and then set to the correct range instantly after the y-axis has been animated.
I tried passing in various date time representations (Date.getTime(), Date.toISOString() and the Plotly's yyyy-mm-dd HH:MM:SS.ssssss format).
I've recorded the issue, might need to replay it a few times - http://recordit.co/fzDIRlNv6m. What's happening that on the button press the
Plotly.animate()method is called with alayoutchange (nodata change), theyaxis.rangechange is being animated, but thexaxis.rangejust gets reset to some weird dates (can see the labels at the bottom) and then set to the correct range instantly after the y-axis has been animated.I tried passing in various date time representations (
Date.getTime(),Date.toISOString()and the Plotly'syyyy-mm-dd HH:MM:SS.ssssssformat).