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 :
Plotly.restyle(myDiv, updateObj, 1); Plotly.restyle(myDiv, updateObj2, 2);
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 ?