How to update trace/data without changing layout x axis range

I’m wondering if there is a way to add data to a trace or trace to a graph without changing the current layout range.

Allow me to clarify with an example of what i’m talking about -

I draw an initial graph with a time xaxis, and then zoom in to a range of 10 minutes (ex. 1230-1240). Now I want to update the data on the graph without it auto adjusting the axes, or changing the x axis range. If at this point I zoom back out, or reset the axes, the new data should be visible.

Is there a function that does this?

Thanks

https://plot.ly/javascript/uirevision/ is a good place to start.

2 Likes