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 just filed a issue against plotly to add a way to extend a plot in a sorted way (not append but insert sorted) (plotly/plotly.js#4408)
now I though it may also possible (and probably faster implemented) to do in from the graph component. is it possible to hold a copy or reference to the plot's data and on extend insert the new data in a sorted way and afterwards call Plotly.animate()? is this feasible?
The text was updated successfully, but these errors were encountered:
What you're suggesting is technically possible, but I think it would be better to wait for a solution in the PlotlyJS library. Sorting logic + insertion will depend on the type of trace you are plotting (obvious with time series, not so sure about other implementations).
Current solutions:
use this/dcc.Graph and just redraw the entire trace via data callback
use this/dcc.Graph extendData with a trace type that does not show order (e.g. scatter plot with points only e.g. no lines).
modify this/dcc.Graph component to support a new property that will (1) extract existing trace data, (2) insert new points into the trace, (3) call Plotly.deleteTraces(), and (4) Plotly.addTraces()
thanks for taking the time to response!
As you thinks it's technically possible, I'll revisit my requirements and based on that either wait for PlotlyJS or do it in a forked Graph.
Please feel free to close it unless the issue has still some value for you...
I just filed a issue against plotly to add a way to extend a plot in a sorted way (not append but insert sorted) (plotly/plotly.js#4408)
now I though it may also possible (and probably faster implemented) to do in from the graph component. is it possible to hold a copy or reference to the plot's data and on extend insert the new data in a sorted way and afterwards call Plotly.animate()? is this feasible?
The text was updated successfully, but these errors were encountered: