You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've tried to investigate some of the github issues and cannot find a definitive answer on the best way to handle data updates for a graph. (I could very well be missing an existing answer.)
If high volume data is coming in at a rapid rate (i.e., worst case scenario), what is the recommended way to update the graph?
Does the way you update a graph depend on the type of graph where the data is changing?
Meaning, are certain update methods exclusive to certain graph types?
Do certain graph types not have an update method, and you simply have to redraw the whole thing?
Is there a good example of how a graph should be updated? (I am surprised there is not an example on the plot.ly site.)
The text was updated successfully, but these errors were encountered:
That's weird, I could have sworn there was an example somewhere under the Function Reference.
The thing to use is Plotly.extendTraces(gd, traces, indices, maxPoints).
Search through the code in the repository if you want a more detailed explanation, or check the information available from the community site
In my experience this seems to be the fastest way to add new data; depending on your use case you might want to use the GL versions of the various charts (e.g., 'scatterglinstead ofscatter`).
They mostly work well (except for a weird bug) and are substantially less resource intensive.
I've tried to investigate some of the github issues and cannot find a definitive answer on the best way to handle data updates for a graph. (I could very well be missing an existing answer.)
If high volume data is coming in at a rapid rate (i.e., worst case scenario), what is the recommended way to update the graph?
Does the way you update a graph depend on the type of graph where the data is changing?
Meaning, are certain update methods exclusive to certain graph types?
Do certain graph types not have an update method, and you simply have to redraw the whole thing?
Is there a good example of how a graph should be updated? (I am surprised there is not an example on the plot.ly site.)
The text was updated successfully, but these errors were encountered: