The summary questions are:
a) does deg.ExtendableGraph has a “clickData” event bug/option?
b) on dcc.Graph I can pass through “extendData” x,y,z and hovertext information easily. How can I also pass the marker options as marker color, size, colorbar ticks and texts, etc ??? (this can be done on deg.ExtendableGraph and works like a charm )
The History:
I have been dealing with a problem for a couple of weeks now. My app is very simple and it’s 99.9% been done. Just found a problem at the end. I just managed to graph ( scatter3d type) a bunch of points and lines traces ( about 100 traces with several hundred points and lines in everyone) and also able to update/renew the first trace triggering from two callbacks that can be dcc.interval or clicking an “update” buttom. Update/renew just the first one for two reasons: reduce the updating time of plotting and just because that trace has changeable data (data evolving on time: 1 min/hour/ day, etc). Other traces are fixed in time.
So I managed to achieve this following the beautiful examples and answers I found in this forum and the examples of [dash-extendable-graph] documentation. BUT:
-
I first managed to use deg.ExtendableGraph to extend the first trace and then set the length of the extended trace to the length of the new data. This works really really nice BUT a couple of weeks ago I noticed that 3dGraph rotation freezes when I click/rotate on any trace of the graph and have to refresh the page to unfreeze it. Really really uncomfortable (and sad because it works perfectly on what I need to do). So I modified my script to see what “clickData” event id triggers that behavior and to my surprise, I found out that there is NO clickData id output when a click on any trace (by putting it on print by terminal) the script continues to run/update the first trace on callbacks but with rotation view froze and no sign of clickData event triggered. Weird. So first question: Does deg.ExtendableGraph has a “clickData” event bug? does the clickData event callback option exist on that extension?
-
As I was unable to answer that by myself, I migrated from deg.ExtendableGraph to dcc.Graph extendData. From previous apps I made I knew that dcc.Graph does NOT have any problems with rotation freeze on clicking a trace or point. BUT, using dcc.Graph I can pass x,y,z and hovertext data through extendData and UNable to pass marker data as size, color, colorbar ticks and texts (which can be done without problems on deg.ExtendableGraph and is essential to graph/show evolution on time)
Any answer, help, clue, or directions would be much appreciated.
Thanks!
Thanks !