Hi @empet
Thanks so much for your help!
Let me ask one more question.
I also want to display hover text for the parameter except x, y, and z.
This document seems to answer to the above question.
Based on this document, I should use customdata
to display another parameter.
I’ve tried to display three different parameters but it didn’t work.
Basically, what I’m trying is the same as what you’ve done three years ago.
I use xs, ys and zs described as spherical coordinate as x, y, z
in the surface definition, but I want to display the value of longitude, latitude, and z-value in the orthogonal coordinate.
topo_sphere=dict(type='surface',
x=xs,
y=ys,
z=zs,
colorscale=Ctopo,
surfacecolor=topo,
cmin=cmin,
cmax=cmax,
showscale=False,
customdata=[lon_topo, lat_topo, topo],
hovertemplate = 'lon: %{customdata[0]: .3f}'+\
'<br>lat: %{customdata[1]: .3f}'+\
'<br>topo: %{customdata[2]: .3f}<extra></extra>')