Scroll X Axis using JavaScript

I have a plot which shows multiple days of data, but only shows one initially.I want to be able to “scroll” the X axis to a specific day using a javascript function, is this possible?

Would I have to use Plotly.relayout and alter the range that way? Ideally I’d like to scroll, rather than just jump straight there.

Thanks

You’ll soon be able to do this using our upcoming native animation API. Please subscribe to https://github.com/plotly/plotly.js/pull/717 for the latest development info.