Hi there,
I have a scatter geo with two bubbles representing data. The second bubble is added through the use of a trace. Is there any way to animate this second trace as well as the first scatter_geo?
My current output from my code is:
Currently, on the above, the blue circles are animated and change over time, but the red circles stay static on the first day of animation. How do I fix this?
covid = pd.read_csv('covid_19_data.csv')
fig1 = px.scatter_geo(covid, locations="Country/Region", locationmode="country names",animation_frame = "ObservationDate", hover_name = "Country/Region", size = "Confirmed", size_max = 60, projection= "natural earth")
fig2 = px.scatter_geo(covid, locations="Country/Region", locationmode="country names",animation_frame = "ObservationDate", hover_name = "Country/Region", size = "Tweets", size_max = 60, projection= "natural earth")
fig1.add_traces(fig2._data)
fig1.data[1].marker.color = 'rgba(255,0,0,0.1)'
fig1.write_html('second.html', auto_open = True)