I’m encountering this issue as well with a very large dataset.
For all other plot types, the hovertext background color source is automatically updated to the marker color type. For the scatter3d plot type, it seems to be fixed to the first marker drawn. Given that I’m using dynamically scaled marker colors, is there a way to reference back to the marker.color property?
Thanks!
toy example showing issue…
import pandas as pd
import numpy as np
import plotly.graph_objects as go
df = pd.DataFrame(
{
'x': [3, 5, 6, 7],
'y': [2, 1, 5, 3],
'z': [3, 2, 6, 3],
'size': [40, 30, 20, 10],
'color': [-3, 3, 5, 6]},
index=[0, 1, 2, 3])
fig = go.Figure(
data=[
go.Scatter3d(
x=df["x"],
y=df["y"],
z=df["z"],
mode="markers",
marker=dict(
symbol="circle",
size = df['size'],
sizemode="diameter",
color=df['color'],
opacity=0.6,
colorscale="Jet",
line_width=0,
showscale=True,
),
)
]
)
fig.show()