fig = go.Figure()
f = []
hours = range(0, 60)
pts = [rd.randrange(11, 100, 13) for i in range(1, 61)]
for i in range(1, 61):
f.append(go.Frame(data=[go.Scatter(x=list(hours[1:61]), y=list(pts[:i]), name="PRB
Usage",line=dict(color="#1E90FF"),marker=dict(size=10,line=dict(width=3,color="yellow")))]))
fig.update(frames=f)
c = fig.to_html(config={'displayModeBar': False})
Here my animation have 60 frames of jointed scatter plot , after finishing with animation i want to change color of those points who are greater than 80 and less than 20
I tried to add_trace of new plot after fig.update(frames=f) statement but it showing brefore completing the animation