Folks please I ask your support to help me to set up hover template, I need to replace “x, y, z” for a new string. I ve tried to implement some posts from this community unsuccessfully. I really appreciate any orientation. Below is a fragment of code, where I tried to format the hover template.
vr_x_axis, vr_y_azis, vr_z_idx, vr_intersection_consolidate are lists used in the graphic.
fig = go.Figure(data=[go.Scatter3d(x=vr_x_axis, y=vr_y_axis, z=vr_z_idx,
mode='markers+text', # markers
marker_size=8,
customdata=np.stack((vr_x_axis,vr_y_axis,vr_z_idx, vr_intersection_consolidate),axis=-1),
text=vr_intersection_consolidate,
hovertemplatesrc="B: %{customdata[0]}"+\
"<br>Sl: %{customdata[1]}"+\
"<br>Sbl:%{customdata[2]}"+\
"<br>Qty:%{customdata[3]}",
textposition='top center',
textfont=dict(
family='sans serif',
size=12,
color='red'
),
marker=dict(
size=4,
color=vr_color,
colorscale='Viridis', #plotly3
opacity=0.5,
reversescale=True))])