Open KestutisMa opened 3 years ago
Maybe its plotly.js related, same results using vanilla plotly.js opened issue here https://github.com/plotly/plotly.js/issues/5674
same issue over here.. my browser becomes totally unresponsive, hover events stop working. It almost crashes my browser.
Hi, I am trying to redraw only single trace in a plot of many traces (biophysical data). I tried to follow instructions in react-plotly and plotlyjs documentation. Plot is updated but I don't see any performance improvement if I change only single element of data or all data elements, if I change revision as described in following: https://github.com/plotly/react-plotly.js/#refreshing-the-plot https://plotly.com/javascript/plotlyjs-function-reference/#plotlyreact
Important Note: In order to use this method to plot new items in arrays under data such as x or marker.color etc, these items must either have been added immutably (i.e. the identity of the parent array must have changed) or the value of layout.datarevision must have changed.
I generate sample
data
100 traces of 10000 points with:Also, I change
data
with:Plot is generated using data.current for it's
data
propDrawing plot containing single trace takes just a split of second, but if I had already drawn many traces and I want to redraw only single trace, it takes same time as to redraw all traces (few seconds). Am I doing something wrong?