Is there anyway to assign an ID to a trace within a subplot. For example in the following I can see from the HTML that there are two elements containing each trace, can I set the ID that is assigned to each element?
Thanks for your response. Using name (as shown) seems to assign a name that appears int he legend, but this doesn’t seem to give the trace an ID, unless I’m missing something?
You can add any extra parameters to your graph at the time of adding it and not only to the graph but also to the shapes and annotations, in my case I add id’s to be able to find the index of the graph (shape or annotation) and delete it or make some changes now that to update or delete you need to pass the graph index
You can use “layer.layout.data” to access an array containing the data objects for all the graphics or also “layer.layout.shapes” or “layer.layout.annotations” for shapes and annotations where "layer " is the container of the graph