However, it seems that there is no attribute “z”, and the result produces an error. The same is true for the .update_layout() method, specifying the annotations as a list of dictionaries.
fig.update_layout({
"annotations": [
{...}
]
})
These are the only two methods I can seem to find, and neither have worked in my case.
Does anyone know how to correctly add annotations with scatter 3d?
A workaround could be creating a new trace with markers at the desired cordinates and set marker_color=rgba(0,0,0,0). Then use the text parameter for the actual text.
Is there a reason the above methods do not work / am I doing anything wrong? Documentation states “z” attribute should exist, within the “update_layout” method.