Open
Description
When having missing at the start time. Scatter markers are not being draw. When another marker has no values after a certain point in time this point "converts" to the no drawn point.
Im using plotly 4.5.0 in Python 3.7 with Anaconda.
Here is an example:
df = pd.DataFrame([
{"time": 0, "id": "A", "x": 0, "y": 0}, # No data for B at timestep 0
{"time": 1, "id": "A", "x": 0, "y": 1},
{"time": 1, "id": "B", "x": 1, "y": 0},
{"time": 2, "id": "A", "x": 0, "y": 2},
{"time": 2, "id": "B", "x": 1, "y": 1},
{"time": 3, "id": "B", "x": 1, "y": 2}, # No data for A at timestep 3
])
fig = px.scatter(
data_frame=df,
x="x", y="y",
color="id",
animation_frame="time",
hover_data=df.columns,
range_x=(-1, 3),
range_y=(-1, 3),
)
fig.show()
Unfortunately I can't upload an animation of the "conversion".
Thanks in advance!