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’m currently creating an app that has a graph with stream update using extendTrace function.
The app creates multiples Scatters in python and then send the plot to a HTML page.
Since this app can graph N scatters, acconding to the variables the user adds. I need to identify each one in the .JS so I can update it.
I though it was enough to identify it in the JS but when I get the element with:
document.getElementById('graph').data
it lists all the graphs, but the uid is different from the one I setted in the python Scatter class…
Am I doing something wrong or is this a bug? Is there any other way to identify each scatter (except by the name which I don’t trust to use as a unique identifier)
Thanks
The text was updated successfully, but these errors were encountered:
This is a known issue (See #1512) that will be fixed in plotly.py version 4 (to be released in a the next month or so). You can opt-in to the new behavior with plotly.py 3.10 by activating the trace_uids future flag. See #1580.
Hi,
I’m currently creating an app that has a graph with stream update using extendTrace function.
The app creates multiples Scatters in python and then send the plot to a HTML page.
Since this app can graph N scatters, acconding to the variables the user adds. I need to identify each one in the .JS so I can update it.
So to identify each scatter, I add an uid to it:
I though it was enough to identify it in the JS but when I get the element with:
document.getElementById('graph').data
it lists all the graphs, but the uid is different from the one I setted in the python Scatter class…
Am I doing something wrong or is this a bug? Is there any other way to identify each scatter (except by the name which I don’t trust to use as a unique identifier)
Thanks
The text was updated successfully, but these errors were encountered: