animate doesn't animate xaxis.range change for dates in timestamp units
See original GitHub issueI’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).
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:8 (6 by maintainers)
Top Results From Across the Web
python - Animation doesn't work with datetime X values, but it ...
The code from the question runs fine for me in matplotlib 2.2.0 in a Jupyter notebook ( %matplotlib notebook ). It does fail...
Read more >Intro to animations in Python - Plotly
Detailed examples of Intro to Animations including changing color, size, log axes, and more in Python.
Read more >Chapter 22 Visualizing through time | Urban Informatics Toolkit
Next, we will discuss traditional methods of time series visualization. And finally we will quickly touch on the use of animation for viewing...
Read more >Advanced CSS Animation Using cubic-bezier() - CSS-Tricks
The x coordinates of P1 and P2 are restricted to the range [0, 1]. The above curve defines how the output (y-axis) will...
Read more >Swift Charts | Apple Developer Forums
Just using the data will show the chart correctly but I need the Y axis range to not start from 0 but from...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Looks like something is wrong in plotly.js. Even using datetime strings doesn’t solve the problem:
https://codepen.io/etpinard/pen/zPzEXX?editors=0010
thanks for the report.
Looks good to me! Thanks!