According to the documentation, using Plotly.restyle is more efficient than Plotly.newplot.
For example, if my plot got three traces and I would like to update two of them (x and y data) using a for loop. Is it more efficient to do :
I noticed that by using Plotly.restyle, the range selector won’t be updated. In the other hand, Plotly.newplot will update the range selector but will it decrease the performance even more ?
I use Plotly.restyle to update my x and y data from the main plot.
I understand that range slider is part of the layout but it does not seem to include x and y data properties.
Even if I use Plotly.relayout, I do not know how to set my new layout using new values.
I am sorry I was not really clear.
By pressing the “Restyle” button, my data will update (restyle) but the rangeslider won’t. How can I use relayout to update the rangeslider data ?