# Time Series Animation X Axis does not reset

**URL:** <https://community.plotly.com/t/time-series-animation-x-axis-does-not-reset/21868>\
**Category:** plotly.js\
**Created:** [April 3, 2019, 9:15pm UTC](https://community.plotly.com/t/time-series-animation-x-axis-does-not-reset/21868 "2019-04-03T21:15:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![karter705](https://avatars.discourse-cdn.com/v4/letter/k/74df32/32.png) [@karter705](https://community.plotly.com/u/karter705)\
**Post date:** [April 3, 2019, 9:15pm UTC](https://community.plotly.com/t/time-series-animation-x-axis-does-not-reset/21868/1 "2019-04-03T21:15:27Z")

</div>

Hello,

I’m trying to use the animate function on a Time Series plot and the animation is working, but it doesn’t slide the X Axis values to match the new range – even when autorange is set to true in the layout. Is it possible to animate the layout to move to match the new X Axis as well, without specifying the min/max value to the range? How would this work with multiple X Axis?

Thanks!

---

<div class="post-metadata">

**Author:** ![etienne](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/etienne/32/17_2.png) [@etienne](https://community.plotly.com/u/etienne)\
**Post date:** [April 4, 2019, 8:57pm UTC](https://community.plotly.com/t/time-series-animation-x-axis-does-not-reset/21868/2 "2019-04-04T20:57:42Z")

</div>

Thanks for reporting!

Could you try sharing a reproducible example to helps us debug?

---

<div class="post-metadata">

**Author:** ![karter705](https://avatars.discourse-cdn.com/v4/letter/k/74df32/32.png) [@karter705](https://community.plotly.com/u/karter705)\
**Post date:** [April 8, 2019, 6:22pm UTC](https://community.plotly.com/t/time-series-animation-x-axis-does-not-reset/21868/3 "2019-04-08T18:22:47Z")

</div>

Sure, I probably should’ve done that in the first place, sorry!

[https://jsfiddle.net/tpf12xej/2/](https://jsfiddle.net/tpf12xej/2/)

Thanks!

---

<div class="post-metadata">

**Author:** ![etienne](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/etienne/32/17_2.png) [@etienne](https://community.plotly.com/u/etienne)\
**Post date:** [April 11, 2019, 2:22pm UTC](https://community.plotly.com/t/time-series-animation-x-axis-does-not-reset/21868/4 "2019-04-11T14:22:04Z")

</div>

Yeah we don’t allow animating trace coordinates AND axis ranges at the same time at the moment unfortunately.

See [https://github.com/plotly/plotly.js/issues/1687](https://github.com/plotly/plotly.js/issues/1687) for more info.

That said, adding `redraw:false` to the animation options should get you the updated axis range after the animation is completed. This doesn’t appear to work right now. I’ll keep investigating.
